package com.yuhang.demo.util;

import com.CalcFreightVo;
import com.SywUpdateRefundScanList;
import com.UpdateRefundScanDto;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.care.CareItems;
import com.care.CareOrder;
import com.care.CareReceivers;
import com.care.CarefullOrderInfo;
import com.go2.shipping.common.encrypt.AES;
import com.yuhang.CertifyVO;
import com.yuhang.SywModifyRefundScan;
import com.yuhang.SywModifyRefundScanItem;
import com.yuhang.demo.ColorSizeDto;
import com.yuhang.demo.CommentsDto;
import com.yuhang.demo.CommentsItems;
import com.yuhang.demo.PmTest;
import com.yuhang.demo.util.vo.*;
import com.yuhang.demo.vo.AikuItem;
import com.yuhang.demo.vo.AikuOrderInfo;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import vo.StExpressPostage;
import vo.StPostageSeason;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.*;

public class PmAutoTest {

    public static String byOutId() throws IOException {
        String url = PmTest.api + "/user/byOutId";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("outId", "670738"));
//        formparams.add(new BasicNameValuePair("outPlatform", "3"));
        return PostUtil.httpPost(url, formparams);
    }



    public static String getSupplierDeliverTag() throws Exception {
        String url = PmTest.api + "cd/user/getSupplierDeliverTag";
//		params.put("timestamp", time);
//		SignUtil util = new SignUtil();
//		util.sign(params, "UTF-8");
//		formparams.add(new BasicNameValuePair("timestamp", time));
//		formparams.add(new BasicNameValuePair("sign", util.sign(params, "UTF-8")));
//		List<NameValuePair> formparams = new ArrayList<NameValuePair>();
//		formparams.add(new BasicNameValuePair("outIds", "564145"));

        Map<String, Object> map = new HashMap<String, Object>();
        map.put("outIds", 564145);
        map.put("timestamp", new Date().getTime());
        return PostUtil.httpApp(url, map);
    }

    public static String loadInteractiveMsgSyn() throws Exception {
        String url = PmTest.api + "/order/loadInteractiveMsgSyn";
        Map<String, Object> map = new HashMap<String, Object>();

        List<String> ll = new ArrayList<String>();
        ll.add("2288928");
        map.put("product_id", JSONArray.toJSONString(ll));
        map.put("timestamp", new Date().getTime());
        return PostUtil.httpApp(url, map);
    }


    public static String loadCloudOrderMsg() throws Exception {
        String url = PmTest.api + "/order/loadCloudOrderMsg";
        Map<String, Object> map = new HashMap<String, Object>();

        map.put("outPlatform", "3");
        map.put("pageSize", "100");
        return PostUtil.httpApp(url, map);
    }

    public static String valiProductCanExit() throws Exception {
        String url = PmTest.api + "/product/valiProductCanExit";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("productIds", "1942595");
        return PostUtil.httpApp(url, map);
    }

    public static String DealPay() throws Exception {
        String url = PmTest.api + "/deal/pay";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userId", 59722);
        map.put("amount", 5);
        map.put("debitType", "BRUSH");
        map.put("remark", "刷排名");
        map.put("targetId", 1);
        map.put("timestamp", new Date().getTime());
        return PostUtil.httpPost1B(url, map);

    }

    public static String selectSupplier() throws IOException {
        String url = PmTest.api + "/user/selectSupplier";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556257"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String byPlatformAndUsername() throws IOException {
        String url = PmTest.api + "/user/byPlatformAndUsername";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("outPlatform", "3"));
        formparams.add(new BasicNameValuePair("username", "15088592687"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String balance() throws IOException {
        String url = PmTest.api + "/2b/account/balance";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556257"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String pwdAdd() throws IOException {
        String url = PmTest.api + "/2b/account/pwd/add";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556257"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        formparams.add(new BasicNameValuePair("accountPwd", "123456"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String pwdEdit() throws IOException {
        String url = PmTest.api + "/2b/account/pwd/edit";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556257"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        formparams.add(new BasicNameValuePair("oldPwd", "123456"));
        formparams.add(new BasicNameValuePair("newPwd", "1234567"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String userinfo2b() throws IOException {
        String url = PmTest.api + "/2b/account/userinfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556257"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String mobilebind2b() throws IOException {
        String url = PmTest.api + "/2b/account/mobile/bind";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556257"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String tes() throws IOException {
        String url = PmTest.api + "/tes";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        return PostUtil.httpPost(url, formparams);
    }

    public static String createOrder() throws IOException {
        String url = PmTest.api + "/2b/df/order/createOrder";
        File f = new File(System.getProperty("user.dir") + System.getProperty("file.separator") + "createOrderSt.json");
        StringBuilder sb = new StringBuilder();
        BufferedReader fr = new BufferedReader(new FileReader(f));
        String len = "";
        while ((len = fr.readLine()) != null) {
            sb.append(len);
        }
        fr.close();
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("json", sb.toString()));
        formparams.add(new BasicNameValuePair("userId", "502850"));
        formparams.add(new BasicNameValuePair("outPlatform", "3"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String refundLatterOrder() throws IOException {
        String url = PmTest.api + "/1b/refund/refundLatterOrder";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "464671"));
        formparams.add(new BasicNameValuePair("orderIds", "4270731"));
        formparams.add(new BasicNameValuePair("remark", "remark"));
        return PostUtil.httpPost(url, formparams);
    }
    public static String lattPayAdvance() throws IOException {
        String url = PmTest.api + "/trade/lattPayAdvance";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("orderId", "4270732"));
        formparams.add(new BasicNameValuePair("pwd", "123456"));
        formparams.add(new BasicNameValuePair("payType", "BALANCE"));
        formparams.add(new BasicNameValuePair("rate", "0"));
        formparams.add(new BasicNameValuePair("fee", "172"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getLattPayAdvanceInfo() throws IOException {
        String url = PmTest.api + "/trade/getLattPayAdvanceInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("orderId", "4270732"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String vertifySurfaceItemMatch() throws IOException {
        String url = PmTest.api + "2b/df/order/vertifySurfaceItemMatch";
        File f = new File(System.getProperty("user.dir") + System.getProperty("file.separator") + "verify.json");
        StringBuilder sb = new StringBuilder();
        BufferedReader fr = new BufferedReader(new FileReader(f));
        String len = "";
        while ((len = fr.readLine()) != null) {
            sb.append(len);
        }
        fr.close();
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("json", sb.toString()));
        formparams.add(new BasicNameValuePair("userId", "507889"));
        formparams.add(new BasicNameValuePair("platform", "3"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String orderUpdate() throws IOException {
        String url = PmTest.api + "/2b/df/order/orderUpdate";
        File f = new File(System.getProperty("user.dir") + System.getProperty("file.separator") + "orderUpdate.json");
        StringBuilder sb = new StringBuilder();
        BufferedReader fr = new BufferedReader(new FileReader(f));
        String len = "";
        while ((len = fr.readLine()) != null) {
            sb.append(len);
        }
        fr.close();
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("json", sb.toString()));
        formparams.add(new BasicNameValuePair("userId", "507889"));
        formparams.add(new BasicNameValuePair("outPlatform", "3"));
        return PostUtil.httpPost(url, formparams);
    }
    // String json =
    // "[ { \"sourceType\":\"JD\",\"collect\":1,\"remark\": \"订单备注测试\", \"receivers\":{ \"name\": \"杨杰\", \"phone\": \"15828006658\", \"mobile\": \"15922551329\", \"address\": { \"province\": \"重庆\", \"city\": \"重庆\", \"country\": \"渝北区\", \"address\": \"重庆重庆渝北区光电园水星\" } }, \"dsId\": 2794, \"items\": [ { \"supplierId\": 197841, \"supplier\": \"D区88号\", \"phone\": \"18523502645\", \"address\": \"国际商贸城3区2楼14街22505号\", \"artNo\": \"创意·雨燕&c205\", \"itemId\": 1, \"skuId\": 12, \"title\": \"商品title\", \"picUrl\": \"http://go2.i.ximgs.net/5/265/20150305/20150305230304603_220.jpg\", \"price\": 1, \"num\": 2, \"amount\": 2, \"color\": \"白色\", \"size\": \"EUR26\" } ], \"fee\": { \"giftInfo\": [ { \"id\": 1, \"price\": 0.5, \"num\": 1, \"imgUrl\": \"http://go2.i.ximgs.net/5/265/20150305/20150305230304603_220.jpg\", \"remark\": \"后跟帖\" }, { \"id\": 2, \"price\": 1, \"num\": 2, \"imgUrl\": \"http://go2.i.ximgs.net/5/265/20150305/20150305230304603_220.jpg\", \"remark\": \"丝袜\" } ], \"gifts\": 2.5, \"express\": 25, \"inspection\": 0, \"serviceCharge\": 2, \"payment\":3 }, \"expressId\": 1, \"expressName\": \"中通快递\", \"expressNo\": \"中通快递\" } ]";

    public static String getSupplierByDomain() throws IOException {
        String url = PmTest.api + "/user/getSupplierByDomain";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("subdomain", "mall"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String loadSupplierInfo() throws IOException {
        String url = PmTest.api + "/2b/df/order/loadSupplierInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("outId", "265"));
        formparams.add(new BasicNameValuePair("userId", "120240"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String queryItemByParamsMustUser() throws IOException {
        String url = PmTest.api + "/gi/queryItemByParamsMustUser";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("artNo", "乐小小&圆点短袖套装"));
//        formparams.add(new BasicNameValuePair("sourcePlace", "1"));
        // formparams.add(new BasicNameValuePair("outPlatform", "2"));
//        formparams.add(new BasicNameValuePair("supplierId", "8"));

        return PostUtil.httpPost(url, formparams);
    }

    public static String queryItemByParams() throws IOException {
        String url = PmTest.api + "/gi/queryItemByParams";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("artNo", "泡泡象&男童套装TZE6116"));
		 formparams.add(new BasicNameValuePair("sourcePlace", "3"));
//		 formparams.add(new BasicNameValuePair("outPlatform", "2"));
//        formparams.add(new BasicNameValuePair("purchaserId", "502850"));

        return PostUtil.httpPost(url, formparams);
    }

    public static String queryItemByParamsNoWhole() throws IOException {
        String url = PmTest.api + "/gi/queryItemByParamsNoWhole";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("artNo", "童占服饰"));
        formparams.add(new BasicNameValuePair("sourcePlace", "3"));
//		 formparams.add(new BasicNameValuePair("outPlatform", "2"));
//        formparams.add(new BasicNameValuePair("purchaserId", "502850"));

        return PostUtil.httpPost(url, formparams);
    }

    public static String smartPay() throws IOException {
        String url = PmTest.api + "/pay/advertSmartPay";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("json", "{\"amount\":100.00,\"comments\":\"智能广告支付\",\"list\":[{\"amount\":50.00,\"orderId\":46},{\"amount\":50.00,\"orderId\":47}],\"password\":\"123456\",\"payId\":30,\"payType\":1,\"returnUrl\":\"\",\"userId\":304977}\n"));

        return PostUtil.httpPost(url, formparams);
    }


    public static String querySkuByColorSize() throws IOException {
        String url = PmTest.api + "/gi/querySkuByColorSize";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("itemId", "45300606"));
        formparams.add(new BasicNameValuePair("color", "驼色"));
        formparams.add(new BasicNameValuePair("size", "80"));
        // formparams.add(new BasicNameValuePair("outPlatform", "2"));
        // formparams.add(new BasicNameValuePair("supplierId", "97"));

        return PostUtil.httpPost(url, formparams);
    }


    public static String viewExpress() throws IOException {
        String url = PmTest.api + "/kdniao/viewExpress";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("orderId", "4264110"));
        formparams.add(new BasicNameValuePair("platform", "2"));
        // formparams.add(new BasicNameValuePair("outPlatform", "2"));
        // formparams.add(new BasicNameValuePair("supplierId", "97"));

        return PostUtil.httpPost(url, formparams);
    }


    public static String loadSingleGsbItem() throws IOException {
        String url = PmTest.api + "/gi/loadSingleGsbItem";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("itemId", "23508444"));

        return PostUtil.httpPost(url, formparams);
    }


    public static String loadDsOrSupplierInfo() throws IOException {
        String url = PmTest.api + "/2b/df/order/loadDsOrSupplierInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "506321"));
        return PostUtil.httpPost(url, formparams);
    }

    /**
     * @return
     * @throws IOException
     */
    public static String calcManyFreight() throws IOException {
        String url = PmTest.api + "/2b/df/order/calcManyFreight";
        FreightVo f = new FreightVo();
        f.setDsId(97L);
        List<Freights> list = new ArrayList<Freights>();
        Freights ff = new Freights();
        ff.setAddress("重庆");
        ff.setExpressId(38);
        ff.setQuantity(5);
        ff.setUuid("dsfdfsd;fs");
        list.add(ff);
        f.setList(list);
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(f)));
        return PostUtil.httpPost(url, formparams);
    }

    public static String offLineDepositApply() throws IOException {
        String url = PmTest.api + "/pay/offLineDepositApply";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556257"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        formparams.add(new BasicNameValuePair("amount", "97"));
        formparams.add(new BasicNameValuePair("comments", "97"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String topay() throws IOException {
        String url = PmTest.api + "/pay/topay";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        formparams.add(new BasicNameValuePair("fee", "0.01"));
        formparams.add(new BasicNameValuePair("rate", "0"));
        formparams.add(new BasicNameValuePair("notifyUrl", "http://baidu.com"));
        formparams.add(new BasicNameValuePair("returnUrl",
                "http://127.0.0.1:8080/pay/alipay/return"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String apptoPay() throws IOException {
        String url = PmTest.api + "/appPay/topay";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        formparams.add(new BasicNameValuePair("fee", "0.01"));
        formparams.add(new BasicNameValuePair("rate", "0"));
        formparams.add(new BasicNameValuePair("notifyUrl", "http://222.212.88.40:8800/seller/gsb/pay/notify"));
        formparams.add(new BasicNameValuePair("returnUrl",
                "http://222.212.88.40:8800/seller/gsb/pay/return"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String checkPayInfo() throws IOException {
        String url = PmTest.api + "/1b/user/checkPayInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "4"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String addPayInfo() throws IOException {
        String url = PmTest.api + "/1b/user/addPayInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556258"));
        formparams.add(new BasicNameValuePair("partner", "2088221939210090"));
        formparams.add(new BasicNameValuePair("sellerEmail", "margin_nantong@stargoto.com"));
        formparams.add(new BasicNameValuePair("key", "h2osg8bsworasnpdc7gnzhk5wx8wnkxq"));
        formparams.add(new BasicNameValuePair("companyName", "成都星购途信息技术有限公司"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String updatePayInfo() throws IOException {
        String url = PmTest.api + "/1b/user/updatePayInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556248"));
        formparams.add(new BasicNameValuePair("partner", "2088221939210090"));
        formparams.add(new BasicNameValuePair("sellerEmail", "margin_nantong@stargoto.com"));
        formparams.add(new BasicNameValuePair("key", "h2osg8bsworasnpdc7gnzhk5wx8wnkxq"));
        formparams.add(new BasicNameValuePair("companyName", "成都星购途信息技术有限公司"));
        formparams.add(new BasicNameValuePair("vCode", "555327"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String alivCodeByOwner() throws IOException {
        String url = PmTest.api + "/1b/user/alivCodeByOwner";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556248"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String offLineDepositUpdate() throws IOException {
        String url = PmTest.api + "/pay/offLineDepositUpdate";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556248"));
        formparams.add(new BasicNameValuePair("depositId", "4"));
        formparams.add(new BasicNameValuePair("state", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String offLineDepositList() throws IOException {
        String url = PmTest.api + "/pay/offLineDepositList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556248"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        formparams.add(new BasicNameValuePair("userName", ""));
        formparams.add(new BasicNameValuePair("startTime", ""));
        formparams.add(new BasicNameValuePair("endTime", ""));
        formparams.add(new BasicNameValuePair("page", ""));
        formparams.add(new BasicNameValuePair("pageSize", ""));
        formparams.add(new BasicNameValuePair("state", ""));
        return PostUtil.httpPost(url, formparams);
    }

    public static String orderPay() throws IOException {
        String url = PmTest.api + "/pay/orderPay";
        OrderPayDto dto = new OrderPayDto();
        dto.setPwd("123456");
        dto.setType(PayType.BALANCE);
        dto.setUserId(55934L);//502850L
//		dto.setAmount("197"); //910.44 68
        dto.setAmount("117.00"); //910.44 68
        List<Long> list = new ArrayList<Long>();
        list.add(6379271L);
        dto.setOrders(list);
        dto.setRate("0");
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(dto)));
        return PostUtil.httpPost(url, formparams);
    }

    public static String wapOrderPay() throws IOException {
        String url = PmTest.api + "/payWap/order/pay";
        OrderPayDto dto = new OrderPayDto();
        dto.setPwd("123456");
        dto.setType(PayType.ALIPAY);
        dto.setUserId(502850L);//502850L
//		dto.setAmount("197"); //910.44 68
        dto.setAmount("71"); //910.44 68
        List<Long> list = new ArrayList<Long>();
        list.add(4269239L);
//		list.add(4268923L);

        //1195.49
        dto.setOrders(list);
        dto.setRate("0");
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(dto)));
        return PostUtil.httpPost(url, formparams);
    }

    public static String completeOrder() throws IOException {
        String url = PmTest.api + "/2b/df/order/completeOrder";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("orderId", "4268645"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String orderPayWap() throws IOException {
        String url = PmTest.api + "/payWap/order/pay";
        OrderPayDto dto = new OrderPayDto();
        dto.setPwd("123456");
        dto.setType(PayType.BALANCE);
        dto.setUserId(55934L);
        dto.setAmount("155.48");
        List<Long> list = new ArrayList<Long>();
        list.add(4264081L);
        list.add(4264080L);
        dto.setOrders(list);
        dto.setRate("0");
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(dto)));
        return PostUtil.httpPost(url, formparams);
    }

    /**
     * 余额
     *
     * @return
     * @throws IOException
     */
    public static String accountInfo() throws IOException {
        String url = PmTest.api + "/1b/capital/accountInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556257"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        return PostUtil.httpPost(url, formparams);
    }

    /**
     * 流水列表
     *
     * @return
     * @throws IOException
     */
    public static String transactionList() throws IOException {
        String url = PmTest.api + "/1b/capital/transaction/list";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "556257"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        // formparams.add(new BasicNameValuePair("page", ""));
        // formparams.add(new BasicNameValuePair("pageSize", ""));
        // formparams.add(new BasicNameValuePair("startTime", "2017-02-01"));
        // formparams.add(new BasicNameValuePair("endTime", "2017-02-28"));
        // formparams.add(new BasicNameValuePair("tradeNo", ""));
        // formparams.add(new BasicNameValuePair("accountName", ""));
        // formparams.add(new BasicNameValuePair("tradeType", "DEPOSIT"));
        // formparams.add(new BasicNameValuePair("direction", "1"));
        // formparams.add(new BasicNameValuePair("relationId", "55934"));
        // formparams.add(new BasicNameValuePair("online", "1"));
        formparams.add(new BasicNameValuePair("id", "2"));

        return PostUtil.httpPost(url, formparams);
    }

    public static String transferReceive() throws IOException {
        String url = PmTest.api + "/trade/transfer/receive/list";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "506321"));
        // formparams.add(new BasicNameValuePair("fromId", "556248"));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        formparams.add(new BasicNameValuePair("orderNo", ""));
        formparams.add(new BasicNameValuePair("page", "1"));
        formparams.add(new BasicNameValuePair("startTime", ""));
        formparams.add(new BasicNameValuePair("endTime", ""));
        formparams.add(new BasicNameValuePair("state", ""));
        formparams.add(new BasicNameValuePair("name", ""));
        formparams.add(new BasicNameValuePair("tag", "0"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String transferPayList() throws IOException {
        String url = PmTest.api + "/trade/transfer/pay/list";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "97"));
        // formparams.add(new BasicNameValuePair("toId", "556248"));
        formparams.add(new BasicNameValuePair("pageSize", "500"));
        formparams.add(new BasicNameValuePair("page", "1"));
        formparams.add(new BasicNameValuePair("startTime", ""));
        formparams.add(new BasicNameValuePair("endTime", ""));
        formparams.add(new BasicNameValuePair("state", "WAITFORPAY"));
        formparams.add(new BasicNameValuePair("name", ""));
        return PostUtil.httpPost(url, formparams);
    }

    public static String receiveApply() throws IOException {
        String url = PmTest.api + "/trade/transfer/receive/apply";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "502850"));// 55934
        formparams.add(new BasicNameValuePair("pwd", ""));
        formparams.add(new BasicNameValuePair("transferId", ""));
        formparams.add(new BasicNameValuePair("fee", "0.01"));
        formparams.add(new BasicNameValuePair("fromId", "502850"));
        formparams.add(new BasicNameValuePair("toId", "506321"));
        formparams.add(new BasicNameValuePair("comments", "我要收款我要收款测试"));
         formparams.add(new BasicNameValuePair("orders", "6377927"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String urge() throws IOException {
        String url = PmTest.api + "/trade/transfer/urge";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("transferId", "62"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String transferPay() throws IOException {
        String url = PmTest.api + "/trade/transfer/pay";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "122306"));
		formparams.add(new BasicNameValuePair("transferId", ""));
        formparams.add(new BasicNameValuePair("pwd", "123456"));
        formparams.add(new BasicNameValuePair("payType", "BALANCE"));// BALANCE ALIPAY
        // ALIPAY
        formparams.add(new BasicNameValuePair("fee", "1"));
        formparams.add(new BasicNameValuePair("fromId", "122306"));
        formparams.add(new BasicNameValuePair("toId", "464671"));
        formparams.add(new BasicNameValuePair("comments", "777"));
        // formparams.add(new BasicNameValuePair("orders", "257250"));
//		formparams.add(new BasicNameValuePair("refundScanId", "7"));

        return PostUtil.httpPost(url, formparams);
    }

    public static String transferPayBatch() throws IOException {
        String url = PmTest.api + "/trade/transfer/payBatch";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "464671"));
        formparams.add(new BasicNameValuePair("transferIds", "438136,438137"));
        formparams.add(new BasicNameValuePair("pwd", "123456"));
        formparams.add(new BasicNameValuePair("payType", "ALIPAY"));// BALANCE
        // ALIPAY
        formparams.add(new BasicNameValuePair("notifyUrl", "http://baidu.com"));
        formparams.add(new BasicNameValuePair("returnUrl",
                "http://127.0.0.1:8080/pay/alipay/return"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String withdrawApply() throws IOException {
        String url = PmTest.api + "/trade/withdraw/apply";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "1"));
        formparams.add(new BasicNameValuePair("amount", "1"));
        formparams.add(new BasicNameValuePair("pwd", "123456"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getPrdFrozen() throws IOException {
        String url = PmTest.api + "/trade/getPrdFrozen";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "461790"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String listGifts() throws IOException {
        String url = PmTest.api + "/1b/gifts/listGifts";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "97"));
        formparams.add(new BasicNameValuePair("page", "1"));
        formparams.add(new BasicNameValuePair("pageSize", "20"));
        formparams.add(new BasicNameValuePair("name", ""));
        return PostUtil.httpPost(url, formparams);
    }

    public static String queryGifts() throws IOException {
        String url = PmTest.api + "/1b/gifts/queryGifts";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("giftsId", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String addGifts() throws IOException {
        String url = PmTest.api + "/1b/gifts/addGifts";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("name", "小卡片"));
        formparams.add(new BasicNameValuePair("userId", "97"));
        formparams.add(new BasicNameValuePair("imgUrl", "http://mig.c.x"));
        formparams.add(new BasicNameValuePair("price", "1"));
        formparams.add(new BasicNameValuePair("quantity", "1000"));
        formparams.add(new BasicNameValuePair("type", "GIFT"));
        formparams.add(new BasicNameValuePair("cost", "12"));
        formparams.add(new BasicNameValuePair("remark", "xxx"));
        formparams.add(new BasicNameValuePair("state", "ENABLED"));
        formparams.add(new BasicNameValuePair("weight", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String editGifts() throws IOException {
        String url = PmTest.api + "/1b/gifts/editGifts";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("name", "小mao"));
        formparams.add(new BasicNameValuePair("imgUrl", "http://mig.c.x"));
        // formparams.add(new BasicNameValuePair("price", "0.5"));
        formparams.add(new BasicNameValuePair("quantity", "100"));
        formparams.add(new BasicNameValuePair("id", "4"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String delGifts() throws IOException {
        String url = PmTest.api + "/1b/gifts/delGifts";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("giftsId", "2"));
        formparams.add(new BasicNameValuePair("userId", "161325"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String addGiftsBatch() throws IOException {
        String url = PmTest.api + "/1b/gifts/addGiftsBatch";
        List<Gifts> list = new ArrayList<Gifts>();
        Gifts n = new Gifts();
        n.setName("name2");
        n.setPrice(0.4f);
        n.setQuantity(1100);
        n.setUserId(161329L);
        Gifts n1 = new Gifts();
        n1.setName("name2");
        n1.setPrice(0.4f);
        n1.setUserId(161329L);
        n1.setQuantity(1200);
        list.add(n);
        list.add(n1);

        System.out.println(JSON.toJSONString(list));
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(list)));
        return PostUtil.httpPost(url, formparams);
    }

    public static String withDrawList2B() throws IOException {
        String url = PmTest.api + "/trade/withDrawList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "1"));
        formparams.add(new BasicNameValuePair("supplierId", "556248"));
        // formparams.add(new BasicNameValuePair("stateW", "2"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getOffPayState() throws IOException {
        String url = PmTest.api + "/1b/user/getOffPayState";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "97"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String updateOffPayState() throws IOException {
        String url = PmTest.api + "/1b/user/updateOffPayState";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "97"));
        formparams.add(new BasicNameValuePair("state", "1"));
        formparams.add(new BasicNameValuePair("qrCode", "http://dfadkjf"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String offPaySet() throws IOException {
        String url = PmTest.api + "/1b/user/offPaySet";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "97"));
        formparams.add(new BasicNameValuePair("vCode", "449064"));
        formparams.add(new BasicNameValuePair("qrCode", "http://dfadkdjf"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String offPaySetvCode() throws IOException {
        String url = PmTest.api + "/1b/user/offPaySetvCode";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "97"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String matchItem() throws IOException {
        String url = PmTest.api + "/2b/order/matchItem";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        RelationRequest rqu = new RelationRequest();
        rqu.setUserId(120240L);
        List<RelationDto> list = new ArrayList<RelationDto>();
        RelationDto dto = new RelationDto();
        dto.setItemId(1817L);
        dto.setRelationId("TAOBAO-556907295151");
        RelationDto dto1 = new RelationDto();
        dto1.setItemId(1816L);
        dto1.setRelationId("TAOBAO-556595268391");
        list.add(dto);
        list.add(dto1);
        rqu.setList(list);
        System.out.println(JSON.toJSONString(rqu));
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(rqu)));
        return PostUtil.httpPost(url, formparams);
    }

    private static String alipayNotify() throws IOException {
//        String url = "http://127.0.0.1:8881/online_pay/alipay/notifyTest";
         String url = "http://127.0.0.1:8080/pay/alipay/notify";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("gmt_create", "2017-07-19 11:04:06"));
        formparams.add(new BasicNameValuePair("buyer_email", "591057762@qq.com"));
        formparams.add(new BasicNameValuePair("notify_time", "2017-03-22 11:30:07"));
        formparams.add(new BasicNameValuePair("gmt_payment", "2017-03-22 11:04:17"));
        formparams.add(new BasicNameValuePair("seller_email", "margin_nantong@stargoto.com"));
        formparams.add(new BasicNameValuePair("quantity", "1"));
        formparams.add(new BasicNameValuePair("subject", "alber111转账"));
        formparams.add(new BasicNameValuePair("use_coupon", "N"));
        formparams.add(new BasicNameValuePair("sign", "0ab0360a0c0cafbc00a64a4a6e4b368c"));
        formparams.add(new BasicNameValuePair("discount", "0.00"));
        formparams.add(new BasicNameValuePair("body", "转账:0.02"));
        formparams.add(new BasicNameValuePair("buyer_id", "2088112797789753"));
        formparams.add(new BasicNameValuePair("notify_id", "451f45b153cdfe0cbe7e63e6aca32adlse"));
        formparams.add(new BasicNameValuePair("notify_type", "trade_status_sync"));
        formparams.add(new BasicNameValuePair("payment_type", "1"));
        formparams.add(new BasicNameValuePair("out_trade_no", "GSB_TEBBV_45169"));
        formparams.add(new BasicNameValuePair("price", "0.01"));
        formparams.add(new BasicNameValuePair("trade_status", "TRADE_SUCCESS"));
        formparams.add(new BasicNameValuePair("total_fee", "0.01"));
        formparams.add(new BasicNameValuePair("trade_no", "20170322210010047502763188890"));
        formparams.add(new BasicNameValuePair("sign_type", "MD5"));
        formparams.add(new BasicNameValuePair("seller_id", "2088221939210090"));
        formparams.add(new BasicNameValuePair("is_total_fee_adjust", "N"));
        String result = PostUtil.httpPost(url, formparams);
        return result;
    }

    private static String alipayReturn() throws IOException {
        String url = "http://127.0.0.1:6666/web-service/pay/alipay/return";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("buyer_email", "591057762@qq.com"));
        formparams.add(new BasicNameValuePair("notify_time", "2017-03-22 11:07:48"));
        formparams.add(new BasicNameValuePair("seller_email", "margin_nantong@stargoto.com"));
        formparams.add(new BasicNameValuePair("exterface", "create_direct_pay_by_user"));
        formparams.add(new BasicNameValuePair("subject", "alber111订单支付"));
        formparams.add(new BasicNameValuePair("sign", "ff6045579b86c98be5d7196d4ccf8d0b"));
        formparams.add(new BasicNameValuePair("body", "订单编号:610"));
        formparams.add(new BasicNameValuePair("buyer_id", "2088112797789753"));
        formparams.add(new BasicNameValuePair("is_success", "T"));
        formparams.add(new BasicNameValuePair("notify_id",
                "RqPnCoPT3K9%2Fvwbh3InYydiUW%2BnoIIo%2B%2BlvdqyADeWv0ytt9EVNxJk7P0XNTdsuqHW3n"));
        formparams.add(new BasicNameValuePair("notify_type", "trade_status_sync"));
        formparams.add(new BasicNameValuePair("payment_type", "1"));
        formparams.add(new BasicNameValuePair("out_trade_no", "GSBGO2_SC_261"));
        formparams.add(new BasicNameValuePair("total_fee", "0.03"));
        formparams.add(new BasicNameValuePair("trade_status", "TRADE_SUCCESS"));
        formparams.add(new BasicNameValuePair("trade_no", "2017032221001004750276349449"));
        formparams.add(new BasicNameValuePair("sign_type", "MD5"));
        formparams.add(new BasicNameValuePair("seller_id", "2088221939210090"));
        String result = PostUtil.httpPost(url, formparams);
        return result;
    }

    private static String alipayBatchReturn() throws IOException {
        String url = "http://127.0.0.1:8080/trade/alipay/batchNotify";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("sign", "edac32addd87b5038c464eea16fdae48"));
        formparams.add(new BasicNameValuePair("notify_time", "2017-05-16 15:59:47"));
        formparams.add(new BasicNameValuePair("pay_user_id", "2088221939210090"));
        formparams.add(new BasicNameValuePair("sign_type", "MD5"));
        formparams.add(new BasicNameValuePair("pay_user_name", "成都星购途信息技术有限公司"));
        // formparams.add(new BasicNameValuePair("success_details",
        // "1591^15803096943^于航^1111^S^^201702230185028260^20170223153434|"));
        formparams.add(new BasicNameValuePair("fail_details",
                "21376^15803096943^于航^100^S^^201702230185028260^20170223153434|"));
        formparams.add(new BasicNameValuePair("notify_type", "batch_trans_notify"));
        formparams.add(new BasicNameValuePair("notify_id", "16c1c190fe7b9df77caeffae7e76e48l66"));
        formparams.add(new BasicNameValuePair("pay_account_no", "20882219392100900156"));
        formparams.add(new BasicNameValuePair("batch_no", "gsb170223000017"));
        String result = PostUtil.httpPost(url, formparams);
        return result;
    }

    public static String getCustomerById() throws IOException {
        String url = PmTest.api + "/orderCustomer/getCustomerById";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("customerId", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String likeByName() throws IOException {
        String url = PmTest.api + "/orderCustomer/likeByName";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "97"));
        formparams.add(new BasicNameValuePair("name", "y"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String shopOrderList() throws IOException {
        String url = PmTest.api + "/2b/order/orderList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String viewInfo() throws IOException {
        String url = PmTest.api + "/2b/order/viewInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("orderId", "21408132"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String pmorderlist() throws IOException {
        String url = PmTest.api + "/1b/pm/order/list";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "464671"));
//        formparams.add(new BasicNameValuePair("orderId", "21408132"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String batchOrderlist() throws IOException {
        String url = PmTest.api + "/trade/order/batchOrderlist";
        A a = new PmAutoTest().new A();
        a.setDsId(265);
        a.setTradeUserId(265);
        a.setState(1);
        AES aes = new AES(APP_AES_KEY);
        String str = aes.encrypt(JSON.toJSONString(a));
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("reqParams", str));
        return PostUtil.httpPost(url, formparams);
    }

    class A {
        private long dsId;
        private long tradeUserId;
        private int state;

        public int getState() {
            return state;
        }

        public void setState(int state) {
            this.state = state;
        }

        public long getTradeUserId() {
            return tradeUserId;
        }

        public void setTradeUserId(long tradeUserId) {
            this.tradeUserId = tradeUserId;
        }

        public long getDsId() {
            return dsId;
        }

        public void setDsId(long dsId) {
            this.dsId = dsId;
        }

    }

    public static String AppOrderlist() throws IOException {
        String url = PmTest.api + "/trade/order/list";
        A a = new PmAutoTest().new A();
        a.setDsId(265);
        a.setTradeUserId(265);
        AES aes = new AES(APP_AES_KEY);
        String str = aes.encrypt(JSON.toJSONString(a));
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("reqParams", str));
        return PostUtil.httpPost(url, formparams);
    }

    public static String AppviewExpress() throws IOException {
        String url = PmTest.api + "/trade/order/viewExpress";
        B a = new PmAutoTest().new B();
        a.setDsId(265);
        a.setTradeUserId(265);
        a.setOrderId(25849);
        AES aes = new AES(APP_AES_KEY);
        String str = aes.encrypt(JSON.toJSONString(a));
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("reqParams", str));
        return PostUtil.httpPost(url, formparams);
    }

    class B {
        private long dsId;
        private long tradeUserId;
        private long orderId;

        public long getDsId() {
            return dsId;
        }

        public void setDsId(long dsId) {
            this.dsId = dsId;
        }

        public long getTradeUserId() {
            return tradeUserId;
        }

        public void setTradeUserId(long tradeUserId) {
            this.tradeUserId = tradeUserId;
        }

        public long getOrderId() {
            return orderId;
        }

        public void setOrderId(long orderId) {
            this.orderId = orderId;
        }

    }

    public static final String APP_AES_KEY = "2016.01_go2plus_chengdu_china";

    public static void main(String[] args) throws IOException {
        // String
        // str="{\"PushTime\":\"2018-03-28%202016:42:15\",\"EBusinessID\":\"1306019\",\"Data\":[{\"CallBack\":\"1&25846&2\",\"LogisticCode\":\"485061481659\",\"ShipperCode\":\"ZTO\",\"Traces\":[{\"AcceptStation\":\"[台州市]温岭泽国镇的客户部[13355862531]已收件\",\"AcceptTime\":\"2018-03-26%2019:27:34\"},{\"AcceptStation\":\"[台州市]快件离开温岭已发往成都中转\",\"AcceptTime\":\"2018-03-26%2019:33:36\"},{\"AcceptStation\":\"[台州市]快件已到达台州中转部\",\"AcceptTime\":\"2018-03-26%2021:29:05\"},{\"AcceptStation\":\"[台州市]快件离开台州中转部已发往成都中转\",\"AcceptTime\":\"2018-03-26%2021:31:28\"},{\"AcceptStation\":\"[南充市]快件已到达南充中转站\",\"AcceptTime\":\"2018-03-28%2011:50:35\"},{\"AcceptStation\":\"[成都市]快件已到达成都中转\",\"AcceptTime\":\"2018-03-28%2016:33:19\"}],\"State\":\"2\",\"OrderCode\":\"1&25846&2\",\"EBusinessID\":\"1306019\",\"Success\":true}],\"Count\":\"1\"}";
        // List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        // formparams.add(new BasicNameValuePair("RequestData", str));
        // String strx=
        // PostUtil.httpPost("http://127.0.0.1:8020/kdniao/callBack",
        // formparams);
        // System.out.println(strx);

        // String
        // s="B0219CC0471A15B9362F8C085AF406458B2B4B530592A61B1FCBF9478824B411A9FA3A5B85D4922A15D9D3AE0B5EABD5337B5158F9849C19F9A6F74A22CA5624";
        //
//         AES aes = new AES(APP_AES_KEY);
        // System.out.println(aes.decrypt(s));

//		AES aes = new AES(APP_AES_KEY);
//		String str = aes
//				.decrypt("8A63981DDF343F59F204177DACF5021A314E530074F01EF33A2AB4691C2557F96755D067D10958116FEA006C3FFBE38F2925BF46568A31C81F8EB858CFC3B1223415474C1F7F29182CF385B84C53DEAED241ABD5148A7767FF0429670A3A117DFE9FDD67E2172537AFC206B301EEA81C3C078F21082D26C0DA372F79007DA9969A7FDF4EA729FEF21A2349A1E72624B966677471A3A6DDBFC88512112E27EF9BD669FB5369677EFD56780285D1F9154370FE33C7B7E338F32F8784A351A7666823B74FBC83BE2D95EFFE39125FD198F5");
//		System.out.println(str);
//
//
        String s = alipayNotify();
//        System.out.println(s);
//        System.out.println(aes.decrypt("93bd4f1af1fb13acd6e6b1a947a4366d"));

//        List<StPostageSeason> list = new ArrayList<>();
//
//        list.add(new StPostageSeason(BigDecimal.ONE,BigDecimal.ONE,BigDecimal.ONE,BigDecimal.ONE,1));
//        StExpressPostage stExpressPostage = new StExpressPostage(0L, 506321, 29, "中通快递", "2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32",
//                0, "备注", "ENABLED", list);
//
//        System.out.println(JSON.toJSON(stExpressPostage));

    }

    public static String listBranch() throws IOException {
        String url = PmTest.api + "/trade/pm/listBranch";
        C a = new PmAutoTest().new C();
        a.setUserId(265);
        a.setTradeUserId(265);
        AES aes = new AES(APP_AES_KEY);
        String str = aes.encrypt(JSON.toJSONString(a));
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("reqParams", str));
        return PostUtil.httpPost(url, formparams);
    }

    class D {
        private long tradeId;
        private long dsId;
        private long batchNo;

        public long getTradeId() {
            return tradeId;
        }

        public void setTradeId(long tradeId) {
            this.tradeId = tradeId;
        }

        public long getDsId() {
            return dsId;
        }

        public void setDsId(long dsId) {
            this.dsId = dsId;
        }

        public long getBatchNo() {
            return batchNo;
        }

        public void setBatchNo(long batchNo) {
            this.batchNo = batchNo;
        }

    }

    public static String batchListOrderInfos() throws IOException {
        String url = PmTest.api + "/trade/order/orderListByBatchNo";
        D a = new PmAutoTest().new D();
        a.setTradeId(265);
        a.setDsId(265);
        a.setBatchNo(2018032700001L);
        AES aes = new AES(APP_AES_KEY);
        String str = aes.encrypt(JSON.toJSONString(a));
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("reqParams", str));
        return PostUtil.httpPost(url, formparams);
    }

    public static String postageList() throws IOException {
        String url = PmTest.api + "/trade/order/postage/list";
        D a = new PmAutoTest().new D();
        a.setTradeId(265);
        a.setDsId(265);
        a.setBatchNo(2018032700001L);
        AES aes = new AES(APP_AES_KEY);
        String str = aes.encrypt(JSON.toJSONString(a));
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("reqParams", str));
        return PostUtil.httpPost(url, formparams);
    }

    public static String validTemplates() throws IOException {
        String url = PmTest.api + "/trade/pm/waybill/validTemplates";
        C a = new PmAutoTest().new C();
        a.setUserId(265);
        a.setTradeUserId(265);
        AES aes = new AES(APP_AES_KEY);
        String str = aes.encrypt(JSON.toJSONString(a));
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("reqParams", str));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getIndexUrl() throws IOException {
        String url = PmTest.api + "/trade/orderCustomer/getIndexUrl";
        C a = new PmAutoTest().new C();
        a.setDsId(265);
        a.setCustomerId(12);
        AES aes = new AES(APP_AES_KEY);
        String str = aes.encrypt(JSON.toJSONString(a));
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("reqParams", str));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getElectronicSheetInfo() throws IOException {
        String url = PmTest.api + "/trade/pm/order/printInfo";
        C a = new PmAutoTest().new C();
        a.setUserId(265);
        a.setTradeUserId(265);
        a.setOrderIds("25856");
        a.setCpCode("YTO");
        a.setCity("台州市");
        a.setProvince("浙江省");
        a.setDistrict("温岭市");
        a.setDetail("城北街道石粘新村B区10栋2号");
        a.setShopId("41");
        AES aes = new AES(APP_AES_KEY);
        String str = aes.encrypt(JSON.toJSONString(a));
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("reqParams", str));
        return PostUtil.httpPost(url, formparams);
    }

    class C {
        private long userId;
        private long dsId;
        private long customerId;

        public long getDsId() {
            return dsId;
        }

        public void setDsId(long dsId) {
            this.dsId = dsId;
        }

        public long getCustomerId() {
            return customerId;
        }

        public void setCustomerId(long customerId) {
            this.customerId = customerId;
        }

        private long tradeUserId;
        private String orderIds;
        private String cpCode;
        private String province;
        private String city;
        private String district;
        private String detail;
        private String shopId;

        public String getCpCode() {
            return cpCode;
        }

        public void setCpCode(String cpCode) {
            this.cpCode = cpCode;
        }

        public String getProvince() {
            return province;
        }

        public void setProvince(String province) {
            this.province = province;
        }

        public String getCity() {
            return city;
        }

        public void setCity(String city) {
            this.city = city;
        }

        public String getDistrict() {
            return district;
        }

        public void setDistrict(String district) {
            this.district = district;
        }

        public String getDetail() {
            return detail;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        public String getShopId() {
            return shopId;
        }

        public void setShopId(String shopId) {
            this.shopId = shopId;
        }

        public long getUserId() {
            return userId;
        }

        public void setUserId(long userId) {
            this.userId = userId;
        }

        public long getTradeUserId() {
            return tradeUserId;
        }

        public void setTradeUserId(long tradeUserId) {
            this.tradeUserId = tradeUserId;
        }

        public String getOrderIds() {
            return orderIds;
        }

        public void setOrderIds(String orderIds) {
            this.orderIds = orderIds;
        }

    }

    public static String checkCanBeCancel() throws IOException {
        String url = PmTest.api + "/trade/pm/checkCanBeCancel";
        X a = new PmAutoTest().new X();
        a.setOrderIds("25514,25515,25516,25517,25519,25524");
        a.setDsId(210205);
        a.setTradeUserId(210205);
        a.setSid("3592cc8d-02fa-46f6-9b34-b066d6c60f89");
        AES aes = new AES(APP_AES_KEY);
        String str = aes.encrypt(JSON.toJSONString(a));
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("reqParams", str));
        return PostUtil.httpPost(url, formparams);
    }

    class X {
        private long tradeUserId;

        public long getTradeUserId() {
            return tradeUserId;
        }

        public void setTradeUserId(long tradeUserId) {
            this.tradeUserId = tradeUserId;
        }

        private long dsId;
        private String orderIds;
        private String sid;

        public String getSid() {
            return sid;
        }

        public void setSid(String sid) {
            this.sid = sid;
        }

        public long getDsId() {
            return dsId;
        }

        public void setDsId(long dsId) {
            this.dsId = dsId;
        }

        public String getOrderIds() {
            return orderIds;
        }

        public void setOrderIds(String orderIds) {
            this.orderIds = orderIds;
        }

    }

    public static String createAikuOrder() throws IOException {
        String url = PmTest.api + "/aiku/createAikuOrder";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "638514"));

        AikuOrderInfo oi = new AikuOrderInfo();
        oi.setActivityId("1023920824");
        oi.setExpressCompany("SF");
        oi.setExpressNo("");
        oi.setOrderNo("10000004");
        oi.setReceiverAddress("重庆云阳凤鸣");
        oi.setReceiverMobile("15803096943");
        oi.setReceiverName("于航");

        List<AikuItem> list = new ArrayList<AikuItem>();

        AikuItem item = new AikuItem();
        item.setArticleNo("DS");
        item.setBarCode("DS-2");
        item.setSize("34");
        item.setColor("粉红色");
        item.setQuantity(5);
        list.add(item);
        oi.setItem(list);


        List<AikuOrderInfo> listOrder = new ArrayList<AikuOrderInfo>();
        listOrder.add(oi);
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(listOrder)));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getAikuActivity() throws IOException {
        String url = PmTest.api + "/aiku/getAikuActivity";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
//		formparams.add(new BasicNameValuePair("userId", "638514"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getActivityNameByOrderId() throws IOException {
        String url = PmTest.api + "/aiku/getActivityNameByOrderId";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("orderId", "4217309"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String returnOrder() throws IOException {
        String url = PmTest.api + "/2b/df/order/returnOrder";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "502850"));
        formparams.add(new BasicNameValuePair("orderId", "6377888"));
        formparams.add(new BasicNameValuePair("itemIds", "7676022"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String cancelWaiforsendOrder() throws IOException {
        String url = PmTest.api + "/1b/order/cancelWaiforsendOrder";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("orderIds", "4263915"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getOrderRefundMaps() throws IOException {
        String url = PmTest.api + "/2b/df/order/getOrderRefundMaps";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String detailOrder() throws IOException {
        String url = PmTest.api + "/2b/df/order/detail";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "502850"));
        formparams.add(new BasicNameValuePair("orderId", "6379700"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String updateAppeal() throws IOException {
        String url = PmTest.api + "/1b/appeal/deal/updateAppeal";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("appealId", "293"));
        formparams.add(new BasicNameValuePair("remark", "4263404"));
        formparams.add(new BasicNameValuePair("dsId", "4864297"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String updateRefundSign() throws IOException {
        String url = PmTest.api + "/1b/refund/updateRefundSign";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("refundId", "680"));
        formparams.add(new BasicNameValuePair("signStatus", "1"));
        formparams.add(new BasicNameValuePair("reason", "ffffff"));
        formparams.add(new BasicNameValuePair("img", "[\"df/sg/516b9f3c-8979-4caf-a555-acd1795cfaf8.jpg\"]"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getStoreIndex() throws IOException {
        String url = PmTest.api + "/1b/take/getStoreIndex";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "8"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String updateRefundRefuse() throws IOException {
        String url = PmTest.api + "/1b/refund/updateRefundRefuse";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("refundId", "700"));
        formparams.add(new BasicNameValuePair("reason", "xxxxxx"));
//		formparams.add(new BasicNameValuePair("img", "http://www.baidu.com/dfjkadf/fdaskjfasdf"));
//		formparams.add(new BasicNameValuePair("img", "http://www.baidu.com/dfjkadf/fdaskjfasdf"));
//		formparams.add(new BasicNameValuePair("img", "http://www.baidu.com/dfjkadf/fdaskjfasdf"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String refundListvib() throws IOException {
        String url = PmTest.api + "/2b/df/order/refundList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("purchaserId", "55934"));
//        formparams.add(new BasicNameValuePair("orderNo", "2012031795049"));
//		formparams.add(new BasicNameValuePair("deliverOrderType", "2"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String loginApp1b() throws IOException {
        String url = PmTest.api + "/wap/login";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("username", "nahuoyuan001"));
        formparams.add(new BasicNameValuePair("password", "123456"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String option(String token) throws IOException {
        String url = PmTest.api + "/wap/platform/option";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "621327"));
        formparams.add(new BasicNameValuePair("token", token));
        return PostUtil.httpPost(url, formparams);
    }


    public static String index(String token) throws IOException {
        String url = PmTest.api + "/wap/platform/index";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "621327"));
        formparams.add(new BasicNameValuePair("token", token));
        return PostUtil.httpPost(url, formparams);
    }


    public static String taked(String token) throws IOException {
        String url = PmTest.api + "/wap/platform/orderTaked";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "621327"));
        formparams.add(new BasicNameValuePair("takeIds", "3115"));
        formparams.add(new BasicNameValuePair("token", token));
        return PostUtil.httpPost(url, formparams);
    }

    public static String orderStockOut(String token) throws IOException {
        String url = PmTest.api + "/wap/platform/orderStockOut";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "621327"));
        formparams.add(new BasicNameValuePair("takeIds", "3116"));
        formparams.add(new BasicNameValuePair("token", token));
        return PostUtil.httpPost(url, formparams);
    }


    public static String transactionRelation() throws IOException {
        String url = PmTest.api + "/trade/transaction/relation";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "464671"));
        formparams.add(new BasicNameValuePair("tId", "47892"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String sellListPlatform() throws IOException {
        String url = PmTest.api + "/1b/take/sellListPlatform";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
//		formparams.add(new BasicNameValuePair("endTime", "2019-08-28"));
//		formparams.add(new BasicNameValuePair("printAll", "1"));
        formparams.add(new BasicNameValuePair("pageSize", "10"));
//		formparams.add(new BasicNameValuePair("bestType", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String advanceList() throws IOException {
        String url = PmTest.api + "/1b/take/advanceList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String appAdvanceList() throws IOException {
        String url = PmTest.api + "/1b/take/appAdvanceList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getSalesTake() throws IOException {
        String url = PmTest.api + "/1b/take/getSalesTake";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "8"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getTakeTracByOrderId() throws IOException {
        String url = PmTest.api + "/common/getTakeTracByOrderId";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("orderId", "4263797"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String submitAppeal() throws IOException {
        String url = PmTest.api + "/2b/appeal/submitAppeal";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("content", "拿货超时了"));
        formparams.add(new BasicNameValuePair("type", "2"));
        formparams.add(new BasicNameValuePair("orderId", "4265223"));
        formparams.add(new BasicNameValuePair("refundOrderId", "947"));
        return PostUtil.httpPostWz(url, formparams);
    }


    public static String stockOutList() throws IOException {
        String url = PmTest.api + "/1b/take/stockOutList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String refundItemList() throws IOException {
        String url = PmTest.api + "/1b/refund/refundItemList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getTransferLimit() throws IOException {
        String url = PmTest.api + "/trade/getTransferLimit";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("fromId", "97"));
        formparams.add(new BasicNameValuePair("toId", "55934"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String orderTakePrintCallBack() throws IOException {
        String url = PmTest.api + "/1b/pm/orderTakePrint/callback";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("keys", "1,2,3,4"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String appStockOutList() throws IOException {
        String url = PmTest.api + "/1b/take/appStockOutListNew";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        formparams.add(new BasicNameValuePair("state", "TAKED"));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String appStoreListNew() throws IOException {
        String url = PmTest.api + "/1b/take/appStoreListNew";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        formparams.add(new BasicNameValuePair("type", "0"));
        formparams.add(new BasicNameValuePair("pageSize", "10"));
        formparams.add(new BasicNameValuePair("bestType", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getSendoutOrderTakeData() throws IOException {
        String url = PmTest.api + "/1b/take/getSendoutOrderTakeData";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
//		formparams.add(new BasicNameValuePair("type", "0"));
//		formparams.add(new BasicNameValuePair("pageSize", "10"));
//		formparams.add(new BasicNameValuePair("bestType", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getCompensateRecord() throws Exception {
        String url = PmTest.api + "/best/getCompensateRecord";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("pageNo", "1"));
        formparams.add(new BasicNameValuePair("supplierId", "265"));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("pageNo", "1");
        params.put("pageSize", "1");
        params.put("supplierId", "265");
        return PostUtil.httpApp(url, params);
    }

    public static String getCompensateNumBySupplierIds() throws Exception {
        String url = PmTest.api + "/best/getCompensateNumBySupplierIds";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierIds", "265,47"));
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("supplierIds", "265,47");
        return PostUtil.httpApp(url, params);
    }


    public static String updateBestState() throws Exception {
        String url = PmTest.api + "/best/updateBestStateByProductIds";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("productIds", "1399905,1418206"));
        formparams.add(new BasicNameValuePair("state", "1"));
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("productIds", "1399905,1418206");
        params.put("state", "1");
        return PostUtil.httpApp(url, params);
    }

    public static String updateBestStateByUserId() throws Exception {
        String url = PmTest.api + "/best/updateBestStateByUserId";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "265"));
        formparams.add(new BasicNameValuePair("state", "1"));
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("userId", "265");
        params.put("state", "1");
        return PostUtil.httpApp(url, params);
    }

    public static String returnMargin() throws Exception {
        String url = PmTest.api + "/best/returnMargin";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "265"));
        formparams.add(new BasicNameValuePair("amount", "100"));
        formparams.add(new BasicNameValuePair("operatorName", "lixn"));
        formparams.add(new BasicNameValuePair("reason", "因平台代发原因未及时取货造成订单超时发出，经审核不是您方原因，现将您赔付的金额{X}元退还至您账户余额。"));
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("userId", "265");
        params.put("amount", "100");
        params.put("operatorName", "lixn");
        params.put("reason", "因平台代发原因未及时取货造成订单超时发出，经审核不是您方原因，现将您赔付的金额{X}元退还至您账户余额。");
        return PostUtil.httpApp(url, params);
    }


    public static String getSendoutReturnRecord() throws Exception {
        String url = PmTest.api + "/best/getSendoutReturnRecord";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierName", "创意"));
//		formparams.add(new BasicNameValuePair("startTime", "2019-12-09"));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("supplierName", "创意");
        params.put("pageSize", "100");
        return PostUtil.httpApp(url, params);
    }

    public static String getHasGoodsDay() throws IOException {
        String url = PmTest.api + "/best/getHasGoodsDay";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("itemId", "45715235"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String marginReplenish() throws IOException {
        String url = PmTest.api + "/pay/marginReplenish";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "97"));
        formparams.add(new BasicNameValuePair("payType", "BALANCE"));//BALANCE
        formparams.add(new BasicNameValuePair("amount", "1"));
        formparams.add(new BasicNameValuePair("password", "123456"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String marginQuery() throws IOException {
        String url = PmTest.api + "/2b/account/marginQuery";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "97"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getDiffPrice() throws IOException {
        String url = PmTest.api + "/1b/take/getDiffPrice";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "556718"));
//		formparams.add(new BasicNameValuePair("userName", "d"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getDiffData() throws IOException {
        String url = PmTest.api + "/1b/take/getDiffData";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "556718"));
//		formparams.add(new BasicNameValuePair("userName", "d"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getBestProductStatis() throws IOException {
        String url = PmTest.api + "/best/getBestProductStatis";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "97"));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getTodayStoreIndex() throws IOException {
        String url = PmTest.api + "/1b/take/getTodayStoreIndex";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String appStoreList() throws IOException {
        String url = PmTest.api + "/1b/take/appStoreList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        formparams.add(new BasicNameValuePair("type", "0"));
        formparams.add(new BasicNameValuePair("pageSize", "10"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getRefundingReach() throws IOException {
        String url = PmTest.api + "/1b/order/getRefundingReach";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getAppStoreNotice() throws IOException {
        String url = PmTest.api + "/1b/take/getAppStoreNotice";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        //	formparams.add(new BasicNameValuePair("bestType", "1"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getUserByOutId() throws IOException {
        String url = PmTest.api + "/user/getUserByOutId";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("outId", "265"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getpreBalance() throws Exception {
        String url = PmTest.api + "/cd/user/getpreBalance";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "265"));
        Map<String, Object> params = new HashMap<String, Object>();
        String time = new Date().getTime() + "";
        params.put("userId", "265");
        params.put("timestamp", time);
        SignUtil util = new SignUtil();
        util.sign(params, "UTF-8");
        formparams.add(new BasicNameValuePair("timestamp", time));
        formparams.add(new BasicNameValuePair("sign", util.sign(params, "UTF-8")));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getprXeBalance() throws Exception {
        String url = PmTest.api + "/1b/take/getpreBalance";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "97"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getOrderRefundByOrderIdAndOrderItemId() throws IOException {
        String url = PmTest.api + "/2b/df/order/getOrderRefundByOrderIdAndOrderItemId";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("orderId", "4264047"));
        formparams.add(new BasicNameValuePair("orderItemId", "4864686"));
        formparams.add(new BasicNameValuePair("state", "CANCEL"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String refundDetail() throws IOException {
        String url = PmTest.api + "/2b/df/order/refundDetail";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("purchaserId", "122306"));
        formparams.add(new BasicNameValuePair("refundId", "855"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String wapLogin() throws IOException {
        String url = PmTest.api + "/wap/login";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("username", "nahuoyuan001"));
        formparams.add(new BasicNameValuePair("password", "123456"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getIndex() throws IOException {
        String url = "http://df.go2b2b.com/login";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("token", "f1f6ae25-3668-4365-85c5-6249a279713"));
        formparams.add(new BasicNameValuePair("username", "nahuoyuan001"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String supplierStoreList() throws IOException {
        String url = PmTest.api + "/1b/take/supplierStoreList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "4"));
        formparams.add(new BasicNameValuePair("pageSize", "10"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String appSupplierStoreList() throws IOException {
        String url = PmTest.api + "/1b/take/appSupplierStoreList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        formparams.add(new BasicNameValuePair("state", "1"));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String orderTakePrintCallBackWap() throws IOException {
        String url = PmTest.api + "/wap/print/orderTakePrint/callback";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("keys", "1,2,3,4"));
        formparams.add(new BasicNameValuePair("token", "b824bb78-125c-4f8c-81ba-1c638a17197d"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String updateStoreOperationBatch() throws IOException {
        String url = PmTest.api + "/1b/take/updateStoreOperationBatch";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        formparams.add(new BasicNameValuePair("takeIds", "4151"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getStoreData() throws IOException {
        String url = PmTest.api + "/1b/take/getStoreData";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        formparams.add(new BasicNameValuePair("storeNum", "2"));
        formparams.add(new BasicNameValuePair("takeIds", "4149, 4152, 4153, 4154, 4156"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getStoreDataAll() throws IOException {
        String url = PmTest.api + "/1b/take/getStoreDataAll";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        formparams.add(new BasicNameValuePair("takeIds", "4164, 4167, 4203"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String updateStoreOperation() throws IOException {
        String url = PmTest.api + "/1b/take/updateStoreOperation";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "4"));
        formparams.add(new BasicNameValuePair("takeIds", "4174"));
        formparams.add(new BasicNameValuePair("storeNum", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getAppMsg() throws IOException {
        String url = PmTest.api + "/user/getAppMsg";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "59722"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getSupplierAutoStoreSign() throws IOException {
        String url = PmTest.api + "/1b/take/getSupplierAutoStoreSign";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String setSupplierAutoStoreSign() throws IOException {
        String url = PmTest.api + "/1b/take/setSupplierAutoStoreSign";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "97"));
        formparams.add(new BasicNameValuePair("tag", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String appointList() throws IOException {
        String url = PmTest.api + "/1b/take/appoint/list";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
//		formparams.add(new BasicNameValuePair("storeState", "1"));
//		formparams.add(new BasicNameValuePair("printStatus", "1"));
//		formparams.add(new BasicNameValuePair("bestProduct", "3"));
		formparams.add(new BasicNameValuePair("artNo", "童占服饰&普吉岛"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String prepareList() throws IOException {
        String url = PmTest.api + "/1b/take/prepare/list";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
//		formparams.add(new BasicNameValuePair("storeState", "1"));
//		formparams.add(new BasicNameValuePair("printStatus", "1"));
//		formparams.add(new BasicNameValuePair("bestProduct", "3"));
        formparams.add(new BasicNameValuePair("artNo", "GO2精选货源&WY800"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String pmOrderList() throws IOException {
        String url = PmTest.api + "/1b/pm/order/list";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "464671"));
//		formparams.add(new BasicNameValuePair("storeState", "1"));
//		formparams.add(new BasicNameValuePair("printStatus", "1"));
//		formparams.add(new BasicNameValuePair("bestProduct", "3"));
//		formparams.add(new BasicNameValuePair("merchantCode", "创意·雨燕&8746"));
        formparams.add(new BasicNameValuePair("otType", "3"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String takeprintQuery() throws IOException {
        String url = PmTest.api + "/1b/pm/takeprint/query";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "464671"));
//		formparams.add(new BasicNameValuePair("storeState", "1"));
//		formparams.add(new BasicNameValuePair("printStatus", "1"));
//		formparams.add(new BasicNameValuePair("bestProduct", "3"));
        formparams.add(new BasicNameValuePair("merchantCode", "GO2精选货源&WY800"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String querySkuColorSizeByOuterId() throws IOException {
        String url = PmTest.api + "/gi/querySkuColorSizeByOuterId";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
//		formparams.add(new BasicNameValuePair("outerId", "1456952"));
//		formparams.add(new BasicNameValuePair("color", "驼色"));
//		formparams.add(new BasicNameValuePair("size", "80"));

        formparams.add(new BasicNameValuePair("outerId", "313847"));
        formparams.add(new BasicNameValuePair("color", "红色"));
        formparams.add(new BasicNameValuePair("size", "34"));

        return PostUtil.httpPost(url, formparams);
    }

    public static String querySkuColorSizeByOuterIdBatch() throws IOException {
        String url = PmTest.api + "/gi/querySkuColorSizeByOuterIdBatch";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        List<ColorSizeDto> list = new ArrayList<ColorSizeDto>();

        ColorSizeDto cd1 = new ColorSizeDto();
        cd1.setColor("玫红色");
        cd1.setSize("110");
        cd1.setOuterId(2009287);

        ColorSizeDto cd2 = new ColorSizeDto();
        cd2.setColor("玫红色");
        cd2.setSize("120");
        cd2.setOuterId(2009287);


        list.add(cd1);
        list.add(cd2);
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(list)));
        formparams.add(new BasicNameValuePair("purchaserId", "699073"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getStoreTakeTrace() throws IOException {
        String url = PmTest.api + "/1b/take/getStoreTakeTrace";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("orderId", "4264408"));
        formparams.add(new BasicNameValuePair("orderItemId", "4865282"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String pOrderList() throws IOException {
        String url = PmTest.api + "/2b/df/order/list";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "502850"));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
//		formparams.add(new BasicNameValuePair("orderKind", "1"));
//        formparams.add(new BasicNameValuePair("deliverOrderType", "1"));
//		formparams.add(new BasicNameValuePair("ids", "4265220,4265219"));
//		formparams.add(new BasicNameValuePair("orderNo", "1912116238165"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getBestProductSku() throws Exception {
        String url = PmTest.api + "best/getProductAndSku";
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("productId", "1399905");
        return PostUtil.httpApp(url, params);
    }

    public static String getProductAndSkuByProductIds() throws Exception {
        String url = PmTest.api + "best/getProductAndSkuByProductIds";
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("productIds", "1399905");
        return PostUtil.httpApp(url, params);
    }

    public static String updateStockNum() throws Exception {
        String url = PmTest.api + "best/updateStockNum";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("productId", "1399905"));
        formparams.add(new BasicNameValuePair("color", "白色"));
        formparams.add(new BasicNameValuePair("size", "34"));
        formparams.add(new BasicNameValuePair("quantity", "-100"));
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("productId", "1399905");
        params.put("color", "白色");
        params.put("size", "34");
        params.put("quantity", "34");
        return PostUtil.httpApp(url, params);
    }

    public static String getProductDetails() throws Exception {
        String url = PmTest.api + "best/getProductDetails";
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("productIds", "1803457,1803456,1803448");
        return PostUtil.httpApp(url, params);
    }


    public static String updateNextDayStock() throws Exception {
        String url = PmTest.api + "best/updateNextDayStock";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("productId", "1399905"));
        formparams.add(new BasicNameValuePair("quantity", "2000"));

        Map<String, Object> params = new HashMap<String, Object>();
        params.put("productId", "1399905");
        params.put("quantity", "2000");
        return PostUtil.httpApp(url, params);
    }

    public static String bestStockList() throws Exception {
        String url = PmTest.api + "best/bestStockList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("bestProductId", "1399905"));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("bestProductId", "1399905");
        params.put("pageSize", "2000");
        return PostUtil.httpApp(url, params);
    }

    public static String bestStockListByUserId() throws Exception {
        String url = PmTest.api + "best/bestStockListByUserId";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "97"));
        formparams.add(new BasicNameValuePair("artNo", "创意·雨燕&199-3"));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("userId", "97");
        params.put("artNo", "创意·雨燕&199-3");
        params.put("pageSize", "1");
        return PostUtil.httpApp(url, params);
    }

    public static String bestDayStockList() throws Exception {
        String url = PmTest.api + "best/bestDayStockList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("productId", "1399905"));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        Map<String, Object> params = new HashMap<String, Object>();
        params.put("productId", "1399905");
        params.put("pageSize", "1");
        return PostUtil.httpApp(url, params);
    }


    public static String wintakelogin() throws IOException {
        String url = PmTest.api + "/wintake/login";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("username", "160b7fca7dfb76fcd7fef3e25340458f"));
        formparams.add(new BasicNameValuePair("password", "1112676aa71420e0a06b82ee5a061e06181"));
        formparams.add(new BasicNameValuePair("source", "9c8223c23b0f8a556d2efd379c33351a"));
        return PostUtil.httpPost(url, formparams);
    }

    private static String token = "37d3b1fd-c916-44a1-a0b8-5e675da40317";

    public static String getBroadcastMsg() throws IOException {
        String url = PmTest.api + "/wintake/broad/getBroadcastMsg";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("token", token));
        formparams.add(new BasicNameValuePair("serviceId", "50101"));
        return PostUtil.httpPost(url, formparams);
    }

    //win_take_auth_key_ff34b28b-953b-413a-a02c-e809e00fa653
    public static String getRecvInfo() throws IOException {
        String url = PmTest.api + "/wintake/broad/getRecvInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("token", token));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String wintakelogout() throws IOException {
        String url = PmTest.api + "/wintake/logout";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("token", token));
        formparams.add(new BasicNameValuePair("pageSize", "1"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String orderRefund() throws IOException {
        String url = PmTest.api + "/pay/orderRefund";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("fee", "58"));
        formparams.add(new BasicNameValuePair("userId", "803169"));//803169
        formparams.add(new BasicNameValuePair("refundId", "944433"));
        formparams.add(new BasicNameValuePair("type", "BALANCE"));//BALANCE ALIPAY
        formparams.add(new BasicNameValuePair("pwd", "123456"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String addProductComments() throws IOException {
        String url = PmTest.api + "/product/comments/addProductComments";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "502850"));
        CommentsDto dto = new CommentsDto();
        dto.setOrderId(4268419);
        List<CommentsItems> list = new ArrayList<CommentsItems>();
        CommentsItems ci = new CommentsItems();
        ci.setComments("非常好");
        ci.setItemId(45300606);
        ci.setScore(3);
        list.add(ci);
        dto.setList(list);
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(dto)));
        return PostUtil.httpPost(url, formparams);
    }

    //	public static String queryCommentsByOuterId() throws IOException {
//		String url = PmTest.api + "/product/comments/queryCommentsByOuterId";
//		List<NameValuePair> formparams = new ArrayList<NameValuePair>();
//		formparams.add(new BasicNameValuePair("outerId", "1456952"));
//		formparams.add(new BasicNameValuePair("pageSize", "10"));
//		formparams.add(new BasicNameValuePair("sortType", "1"));
//		formparams.add(new BasicNameValuePair("queryType", "2"));
//		return PostUtil.httpPost(url, formparams);
//	}
    public static String queryOrderComments() throws IOException {
        String url = PmTest.api + "/product/comments/queryOrderComments";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("orderId", "4268418"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String dataChargePay() throws Exception {
        String url = PmTest.api + "deal/dataChargePay";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userId", 59722);
        map.put("payType", "ALIPAY");//BALANCE
        map.put("returnUrl", "http://app.go2b2b.com/deal/alipay/return");
        map.put("targetId", 11115);
        map.put("amount", "0.01");
        map.put("comments", 1);
        map.put("password", "123456");
        map.put("timestamp", new Date().getTime());
        return PostUtil.httpApp(url, map);
    }

    public static String appearCertifyPay() throws Exception {
        String url = PmTest.api + "deal/appearCertifyPay";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userId", 59722);
        map.put("payType", "ALIPAY");//BALANCE
        map.put("returnUrl", "http://app.go2b2b.com/deal/alipay/return");
        map.put("notifyUrl", "http://app.go2b2b.com/deal/alipay/return");
        List<CertifyVO> list = new ArrayList<CertifyVO>();
        CertifyVO v = new CertifyVO();
        v.setAmount("1");
        v.setTargetId(333335);

        CertifyVO v1 = new CertifyVO();
        v1.setAmount("1");
        v1.setTargetId(222228);
        list.add(v);
//		list.add(v1);
        map.put("json", JSON.toJSONString(list));
        map.put("password", "123456");
        map.put("timestamp", new Date().getTime());
        return PostUtil.httpApp(url, map);
    }


    public static String certifyCompleted() throws Exception {
        String url = PmTest.api + "deal/certifyCompleted";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userId", 59722);
        map.put("targetId", 333333);
        map.put("timestamp", new Date().getTime());
        return PostUtil.httpApp(url, map);
    }

    public static String activityPay() throws Exception {
        String url = PmTest.api + "deal/activityPay";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userId", 59722);
        map.put("targetId", 111);
        map.put("remark", 333333);
        map.put("amount", 11);
        map.put("activityType", "REDPACKET");
        map.put("timestamp", new Date().getTime());

        return PostUtil.httpApp(url, map);
    }

    public static String certifyRefund() throws Exception {
        String url = PmTest.api + "deal/appearCertifyRefund";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userId", 59722);
        map.put("targetId", 333335);
        map.put("amount", "1");
        map.put("comments", 1);
        map.put("articleNumber", "123456");
        map.put("timestamp", new Date().getTime());
        return PostUtil.httpApp(url, map);
    }

    public static String getRefundOrderByExpress() throws IOException {
        String url = PmTest.api + "/refund/scan/getRefundOrderByExpress";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("expressId", "1"));
        formparams.add(new BasicNameValuePair("expressNo", "222233344556"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getCreateFastInfo() throws IOException {
        String url = PmTest.api + "/1b/user/getCreateFastInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "502850"));
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getDsRefundServiceInfo() throws IOException {
        String url = PmTest.api + "/1b/user/getDsRefundServiceInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "506321"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String setFastRefund() throws IOException {
        String url = PmTest.api + "/1b/user/setFastRefund";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "506321"));
        formparams.add(new BasicNameValuePair("refundService", "0.6"));
        formparams.add(new BasicNameValuePair("refundInitNormal", "1"));
        formparams.add(new BasicNameValuePair("refundInitVip", "1"));
        formparams.add(new BasicNameValuePair("refundServiceVip", "0.5"));
        formparams.add(new BasicNameValuePair("refundNormalRemark", "6折优惠"));
        formparams.add(new BasicNameValuePair("refundVipRemark", "5折优惠"));
        formparams.add(new BasicNameValuePair("startTime", "2020-12-01"));
        formparams.add(new BasicNameValuePair("endTime", "2021-01-01"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String addWorkSignIn() throws IOException {
        String url = PmTest.api + "/refund/scan/addWorkSignIn";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("expressId", "1"));
        formparams.add(new BasicNameValuePair("expressNos", "6789767"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String refundScanList() throws IOException {
        String url = PmTest.api + "/refund/scan/refundScanList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("expressId", "1"));
        formparams.add(new BasicNameValuePair("startTime", "2020-04-10"));
        formparams.add(new BasicNameValuePair("endTime", "2020-04-10"));
//		formparams.add(new BasicNameValuePair("clerkId", "1"));
//		formparams.add(new BasicNameValuePair("status", "0"));
        formparams.add(new BasicNameValuePair("supplierAddress", "134"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String refundDealList() throws IOException {
        String url = PmTest.api + "/refund/scan/refundDealList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
//		formparams.add(new BasicNameValuePair("expressNo", "2"));
//		formparams.add(new BasicNameValuePair("startTime", "2020-04-10"));
//		formparams.add(new BasicNameValuePair("endTime", "2020-04-10"));
//		formparams.add(new BasicNameValuePair("clerkId", "1"));
//		formparams.add(new BasicNameValuePair("relationTag", "1"));
//		formparams.add(new BasicNameValuePair("refundTag", "0"));
//		formparams.add(new BasicNameValuePair("supplierAddress", "1"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getRefundItemByExpress() throws IOException {
        String url = PmTest.api + "/refund/scan/getRefundItemByExpress";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("expressNo", "222233344556"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getRefundItemByTakeCode() throws IOException {
        String url = PmTest.api + "/refund/scan/getRefundItemByTakeCode";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("takeCode", "00291"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String updateRefundScanTk() throws IOException {
        String url = PmTest.api + "/refund/scan/updateRefundScanTk";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("id", "1"));
        formparams.add(new BasicNameValuePair("remark", "1"));
        formparams.add(new BasicNameValuePair("amount", "10"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String assignRefundScanClerk() throws IOException {
        String url = PmTest.api + "/refund/scan/assignRefundScanClerk";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("ids", "1"));
        formparams.add(new BasicNameValuePair("clerkId", "621327"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String updateRelationWithRecord() throws IOException {
        String url = PmTest.api + "/refund/scan/updateRelationWithRecord";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        com.yuhang.demo.util.vo.RelationDto dto = new com.yuhang.demo.util.vo.RelationDto();
        dto.setClerkId(621327L);
        dto.setExpressId(1L);
        dto.setExpressNo("222233344556");
        dto.setId(10L);
        dto.setRefundId(1216L);
        List<RefunScanItemDto> list = new ArrayList<RefunScanItemDto>();
        RefunScanItemDto rd = new RefunScanItemDto();
        rd.setArtNo("创意·雨燕&711");
        rd.setColor("浅蓝色");
        rd.setItemId(44011416L);
        rd.setPrice(new BigDecimal("10"));
        rd.setQuantity(2);
        rd.setSize("31");
        rd.setSupplierAddress("3区2楼14街22505号");
        rd.setSupplierId(97);
        rd.setSupplierName("创意·雨燕");
        list.add(rd);
        dto.setList(list);
        System.out.println(JSON.toJSONString(dto));
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(dto)));
        return PostUtil.httpPost(url, formparams);
    }

    public static String modifyRefundScanInfo() throws IOException {
        String url = PmTest.api + "/refund/scan/modifyRefundScanInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        ModifyRefundScan m = new ModifyRefundScan();
        m.setId(2);
        List<ModifyRefundScanItem> list = new ArrayList<ModifyRefundScanItem>();
        ModifyRefundScanItem rd = new ModifyRefundScanItem();
        rd.setArtNo("创意·雨燕&711");
        rd.setColor("浅蓝色");
        rd.setItemId(44011416L);
        rd.setQuantity(3);
        rd.setSize("31");
        rd.setId(2);
        list.add(rd);
        m.setList(list);
        m.setRemark("111");
        System.out.println(JSON.toJSONString(m));
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(m)));
        return PostUtil.httpPost(url, formparams);
    }


    public static String dictExpress() throws IOException {
        String url = PmTest.api + "/refund/scan/dictExpress";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String updateWaitSell() throws IOException {
        String url = PmTest.api + "/refund/scan/updateWaitSell";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("refundScanIds", "9"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getPddPrivacyInfo() throws IOException {
        String url = PmTest.api + "/2b/order/getPddPrivacyInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("orderId", "21408113"));
        formparams.add(new BasicNameValuePair("type", "0"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String getExpressList() throws IOException {
        String url = PmTest.api + "/refund/scan/getExpressList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getClerkList() throws IOException {
        String url = PmTest.api + "/refund/scan/getClerkList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String queryCommentsByOuterId() throws Exception {
        String url = PmTest.api + "product/cloud/queryCommentsByOuterId";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("outerId", 1456952);
        map.put("timestamp", "1594004413843");
        return PostUtil.httpApp(url, map);
    }

    public static String queryCommentsList() throws Exception {
        String url = PmTest.api + "product/cloud/queryCommentsList";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("outerId", 1456952);
        return PostUtil.httpApp(url, map);
    }

    public static String getProductStatisByIds() throws Exception {
        String url = PmTest.api + "product/getProductStatisByIds";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("ids", "1809587");
        return PostUtil.httpApp(url, map);
    }

    public static String syncOrders(String api) throws IOException {
        String url = api + "/2b/order/syncOrders";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("shopIds", "159758"));//264
        formparams.add(new BasicNameValuePair("userId", "507889"));//120240 278569
//		formparams.add(new BasicNameValuePair("startTime", "2022-08-17"));
//		formparams.add(new BasicNameValuePair("endTime", "2022-08-17"));
        formparams.add(new BasicNameValuePair("repeat", "false"));
//		formparams.add(new BasicNameValuePair("json", JSON.toJSONString(vo)));
        formparams.add(new BasicNameValuePair("state", "2"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getWaybillNo(String api) throws IOException {
        String url = api + "/1b/shop/getWaybillNo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("orderId", "4270659"));//264
        formparams.add(new BasicNameValuePair("userId", "55934"));//264
        formparams.add(new BasicNameValuePair("province", "福建省"));//264
        formparams.add(new BasicNameValuePair("city", "厦门市"));//264
        formparams.add(new BasicNameValuePair("area", "集美区"));//264
        formparams.add(new BasicNameValuePair("address", "杏林街道苑亭路32号杏福苑"));//264
        formparams.add(new BasicNameValuePair("shopId", "135735"));//264
        formparams.add(new BasicNameValuePair("branchCode", "ZTO"));//264
        return PostUtil.httpPost(url, formparams);
    }


    public static String getLatterPayTag(String api) throws IOException {
        String url = api + "/user/getLatterPayTag";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));//264
        return PostUtil.httpPost(url, formparams);
    }

    public static String updateLatterPayTag(String api) throws IOException {
        String url = api + "/user/updateLatterPayTag";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "120240"));//264
        formparams.add(new BasicNameValuePair("tag", "1"));//264
        return PostUtil.httpPost(url, formparams);
    }

    public static String getDefaultDfOrderNum(String api) throws IOException {
        String url = api + "/2b/df/order/getDefaultDfOrderNum";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "1"));//120240 278569
        return PostUtil.httpPost(url, formparams);
    }

    public static String createDefaultDF(String api) throws IOException {
        String url = api + "/2b/df/order/createDefaultDF";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "1"));//120240 278569
        formparams.add(new BasicNameValuePair("dsId", "2"));//120240 278569
        return PostUtil.httpPost(url, formparams);
    }


    public static String loadShopOrders(String api) throws IOException {
        String url = api + "/2b/df/order/loadShopOrders";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("orderIds", "21407628"));//264
        formparams.add(new BasicNameValuePair("userId", "1"));//120240 278569
        return PostUtil.httpPost(url, formparams);
    }

    public static String openUserVip() throws Exception {
        String url = PmTest.api + "/cd/user/openUserVip";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userId", "613872");
        map.put("startTime", "2023-05-14 00:04:37");
        map.put("endTime", "2024-05-14 00:04:37");
//		map.put("timestamp", new Date().getTime());
        return PostUtil.httpApp(url, map);
    }


    public static String updateCloudVipRate() throws Exception {
        String url = PmTest.api + "/cd/user/updateCloudVipRate";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("rate", "0.04");
        return PostUtil.httpApp(url, map);
    }


    public static String careCreateOrderAndPay() throws Exception {
        String url = PmTest.api + "/carefully/chosen/createOrderAndPay";

        CareOrder careOrder = new CareOrder();
        careOrder.setUserId(55934);
        List<CarefullOrderInfo> list = new ArrayList<CarefullOrderInfo>();

        CarefullOrderInfo o = new CarefullOrderInfo();
        o.setAmount(new BigDecimal(54));
        List<CareItems> items = new ArrayList<CareItems>();
        CareItems careItem = new CareItems();
        careItem.setColor("蓝色");
        careItem.setProductId(1479473L);
        careItem.setQuantity(1);
        careItem.setSize("120");
        items.add(careItem);
        o.setCareItems(items);
        o.setCollect(0);
        o.setExpress(new BigDecimal(10));
        o.setExpressId(29);
        o.setInspection(BigDecimal.ZERO);
        o.setOutOrderId("1");
        o.setOutOrderNo("00001");

        CareReceivers receivers = new CareReceivers();
        receivers.setAddress("重庆市江北区123路123号");
        receivers.setCity("重庆市");
        receivers.setProvince("重庆");
        receivers.setCountry("江北区");
        receivers.setMobile("15803096943");
        receivers.setName("于航");
        o.setReceivers(receivers);
        o.setRemark("sdfsdfsdfdsfsd");
        o.setServiceCharge(new BigDecimal("2"));
        list.add(o);
        careOrder.setOrders(list);
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("json", JSON.toJSONString(careOrder));
        return PostUtil.httpApp(url, map);
    }


    public static String expressPostageList() throws Exception {
        String url = PmTest.api + "/carefully/chosen/expressPostageList";

        Map<String, Object> map = new HashMap<String, Object>();
        return PostUtil.httpApp(url, map);
    }

    public static String vipAndPackPay() throws Exception {
        String url = PmTest.api + "/deal/vipAndPackPay";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userId", "465511");
        map.put("payType", "ALIPAY");
        map.put("targetId", "992999");
        map.put("amount", "1");
        map.put("debitType", "VIP");
        map.put("opType", "2");
        map.put("returnUrl", "0.04");
        map.put("password", "123456");
        map.put("comments", "123456");

        return PostUtil.httpApp(url, map);
    }

    public static String getUserSupplierStatis() throws Exception {
        String url = PmTest.api + "/cd/user/getUserSupplierStatis";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("pageNo", 3);
        map.put("pageSize", 1);
        return PostUtil.httpApp(url, map);
    }


    public static String getDiscountVipListBackstage() throws Exception {
        String url = PmTest.api + "/cd/user/getDiscountVipListBackstage";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("pageSize", 1);
        return PostUtil.httpApp(url, map);
    }


    public static String updateAlipay() throws Exception {
        String url = PmTest.api + "/cd/user/updateAlipay";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userId", 320669);
        map.put("alipay", "张三三123");
        map.put("alipayName", "李四");
        return PostUtil.httpApp(url, map);
    }


    public static String getDiscountVipListByUserId() throws Exception {
        String url = PmTest.api + "/cd/user/getDiscountVipListByUserId";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userId", 320697);
        map.put("pageSize", 1);
        return PostUtil.httpApp(url, map);
    }

    public static String surfaceItemList() throws Exception {
        String url = PmTest.api + "/surface/item/list";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));//120240 278569
        return PostUtil.httpPost(url, formparams);
    }

    public static String getDiscountVipAmount() throws Exception {
        String url = PmTest.api + "/cd/user/getDiscountVipAmount";
        Map<String, Object> map = new HashMap<String, Object>();
        map.put("userId", 320697);
        return PostUtil.httpApp(url, map);
    }


    public static String sufaceItem() throws IOException {
        String url = PmTest.api + "/2b/df/order/vertifySurfaceItemMatch";
        File f = new File(System.getProperty("user.dir") + System.getProperty("file.separator") + "suface.json");
        StringBuilder sb = new StringBuilder();
        BufferedReader fr = new BufferedReader(new FileReader(f));
        String len = "";
        while ((len = fr.readLine()) != null) {
            sb.append(len);
        }
        fr.close();
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("json", sb.toString()));
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("platform", "1"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String topayWap() throws IOException {
        String url = PmTest.api + "/payWap/topay";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("fee", "0.01"));
        formparams.add(new BasicNameValuePair("rate", "0"));
        formparams.add(new BasicNameValuePair("notifyUrl", "http://baidu.com"));
        formparams.add(new BasicNameValuePair("returnUrl",
                "http://127.0.0.1:8080/pay/alipay/return"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String dictExpressSyw() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/dictExpress";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "464671"));
        formparams.add(new BasicNameValuePair("expressId", "1"));
        formparams.add(new BasicNameValuePair("expressNo", "222233344556"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getSywRefundItemByExpress() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/getSywRefundItemByExpress";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        formparams.add(new BasicNameValuePair("expressNo", "000009"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getSywRefundItemByTakeCode() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/getSywRefundItemByTakeCode";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        formparams.add(new BasicNameValuePair("takeCode", "00296*3"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String sywgetExpressList() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/getExpressList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        return PostUtil.httpPost(url, formparams);
    }
    public static String getFastRefundOrderNum() throws IOException {
        String url = PmTest.api + "/2b/df/order/getFastRefundOrderNum";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "502850"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getRefundScanById() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/getRefundScanById";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("refundScanId", "128"));
        return PostUtil.httpPost(url, formparams);
    }
    public static String loadTakeRefundPayByDsId() throws IOException {
        String url = PmTest.api + "/trade/loadTakeRefundPayByDsId";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        return PostUtil.httpPost(url, formparams);
    }
    public static String loadTakeRefundPayBySupplierId() throws IOException {
        String url = PmTest.api + "/trade/loadTakeRefundPayBySupplierId";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("supplierId", "648956"));
        formparams.add(new BasicNameValuePair("pageSize", "10"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String relation() throws IOException {
        String url = PmTest.api + "/trade/transaction/relation";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("tId", "61888"));
        formparams.add(new BasicNameValuePair("userId", "506443"));
        return PostUtil.httpPost(url, formparams);
    }
    public static String loadTakeRefundPay() throws Exception {
        String url = PmTest.api + "/cd/user/loadTakeRefundPay";
        Map<String,Object> params= new HashMap<String,Object>();
        return PostUtil.httpApp(url, params);
    }

    public static String initWhiteBar() throws Exception {
        String url = PmTest.api + "/cd/user/initWhiteBar";
        Map<String,Object> params= new HashMap<String,Object>();
        params.put("supplierId",1173325);
        return PostUtil.httpApp(url, params);
    }
    public static String loadAccountById() throws Exception {
        String url = PmTest.api + "/deal/loadAccountById";
        Map<String,Object> params= new HashMap<String,Object>();
        params.put("userId",341993);
        return PostUtil.httpApp(url, params);
    }

    public static String complexPay() throws Exception {
        String url = PmTest.api + "/deal/complexPay";
        Map<String,Object> params= new HashMap<String,Object>();
        params.put("userId",55934);
        params.put("amount",0.01);
        params.put("tradeType","WANTBUY");
        params.put("payType","1");
        params.put("remark","xxxxx");
        params.put("targetId",100003);
        params.put("selectType","");
//        params.put("payword","123456");
        params.put("returnUrl","http://baidu.com");
        return PostUtil.httpApp(url, params);
    }

    public static String complexRefund() throws Exception {
        String url = PmTest.api + "/deal/complexRefund";
        Map<String,Object> params= new HashMap<String,Object>();
        params.put("userId",55934);
        params.put("amount",10);
        params.put("tradeType","WANTBUY");
        params.put("payType","0");
        params.put("remark","xxxxx");
        params.put("targetId",100000);
        params.put("selectType",0);
        params.put("payword","123456");
        params.put("returnUrl","http://baidu.com");
        return PostUtil.httpApp(url, params);
    }

    public static String checkPassword() throws Exception {
        String url = PmTest.api + "/cd/user/checkPassword";
        Map<String,Object> params= new HashMap<String,Object>();
        params.put("userId",265);
        params.put("password","1234565");
        return PostUtil.httpApp(url, params);
    }

    public static String signInLogin() throws Exception {
        String url = PmTest.api + "/sub/user/ajax/signIn";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        AES aes = new AES("2016.01_go2plus_chengdu_china");
        formparams.add(new BasicNameValuePair("username", aes.encrypt("yuhang")));
        formparams.add(new BasicNameValuePair("password", aes.encrypt("123456")));
        formparams.add(new BasicNameValuePair("source", aes.encrypt("go2")));
        return PostUtil.httpPost(url, formparams);
    }

    public static String logout() throws Exception {
        String url = PmTest.api + "/sub/user/logout";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        AES aes = new AES("2016.01_go2plus_chengdu_china");
        formparams.add(new BasicNameValuePair("id", aes.encrypt("1")));
        formparams.add(new BasicNameValuePair("token", aes.encrypt("9322f676-e50e-4b15-a523-e5f19d2b07c3")));
        return PostUtil.httpPost(url, formparams);
    }

    public static String getUnReadLatterMsg() throws Exception {
        String url = PmTest.api + "/cd/user/getUnReadLatterMsg";
        Map<String,Object> params= new HashMap<String,Object>();
        params.put("userId","59722");
        return PostUtil.httpApp(url, params);
    }
    public static String syncShop() throws Exception {
        String url = PmTest.api + "/common/shop/syncShop";
        Map<String,Object> params= new HashMap<String,Object>();
        params.put("userId","304839");
        params.put("shopUid","5863962");
        params.put("sellerName","HERE WE GO");
        params.put("shopName","HERE WE GO");
        params.put("sourceType","TIKTOK");
        params.put("token","ba70107a-2fa4-4330-af8d-e8b81c9ef8f9x");
        params.put("refreshToken","349623eb-810d-48ba-8eaf-7b474a643058");
        params.put("expireIn","603673");
        params.put("shopUrl","");
        params.put("shopImg","");
        return PostUtil.httpApp(url, params);
    }


    public static String signUnReadLatterMsg() throws Exception {
        String url = PmTest.api + "/cd/user/signUnReadLatterMsg";
        Map<String,Object> params= new HashMap<String,Object>();
        params.put("userId","59722");
        return PostUtil.httpApp(url, params);
    }
    public static String getLatterMsg() throws Exception {
        String url = PmTest.api + "/cd/user/getLatterMsg";
        Map<String,Object> params= new HashMap<String,Object>();
        params.put("userId","128605");
        return PostUtil.httpApp(url, params);
    }

    public static String loadAllClerk() throws Exception {
        String url = PmTest.api + "/cd/user/loadAllClerk";
        Map<String,Object> params= new HashMap<String,Object>();
        return PostUtil.httpApp(url, params);
    }
    public static String getWhiteBarBySupplierIds() throws Exception {
        String url = PmTest.api + "/cd/user/getWhiteBarBySupplierIds";
        Map<String,Object> params= new HashMap<String,Object>();
        params.put("supplierIds","306518,481867,683457");
        return PostUtil.httpApp(url, params);
    }
    public static String reduceWhiteBar() throws Exception {
        String url = PmTest.api + "/cd/user/reduceWhiteBar";
        Map<String,Object> params= new HashMap<String,Object>();
        params.put("supplierId","653640");
        params.put("operName","李茜（财务）");
        params.put("remark","退出平台，诚信金抵扣白条欠款");
        return PostUtil.httpApp(url, params);
    }



    public static String sywgetClerkList() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/getClerkList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String sywgetPrintList() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/getPrintList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        formparams.add(new BasicNameValuePair("refundScanIds", "125"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String assignRefundScanRefundClerk() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/assignRefundScanRefundClerk";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        formparams.add(new BasicNameValuePair("ids", "128"));
        formparams.add(new BasicNameValuePair("clerkId", "657433"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String updateQuestionRefundScan() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/updateQuestionRefundScan";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        formparams.add(new BasicNameValuePair("refundScanId", "125"));
        formparams.add(new BasicNameValuePair("type", "1"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String sywrefundScanList() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/refundScanList";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
//        formparams.add(new BasicNameValuePair("artNo", "1"));
//                formparams.add(new BasicNameValuePair("artNo", "1"));
//        formparams.add(new BasicNameValuePair("scanTag", "4"));
        formparams.add(new BasicNameValuePair("selectType", "1"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String sywmodifyRefundScanInfo() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/modifyRefundScanInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        SywModifyRefundScan m = new SywModifyRefundScan();
        m.setId(133L);
        m.setRemark("hahah");
        m.setRefundId(1601L);
//        m.setExpressId(1L);
//        m.setExpressNo("expressNo");
        List<SywModifyRefundScanItem> list = new ArrayList<SywModifyRefundScanItem>();
        SywModifyRefundScanItem rd = new SywModifyRefundScanItem();
        rd.setArtNo("贝贝潮品&20588");
        rd.setColor("黄色拼蓝色");
        rd.setItemId(46120429L);
        rd.setQuantity(1);
        rd.setSize("120");
        rd.setPrice("11");
        rd.setSupplierId(4872729L);
        rd.setSupplierAddress("大河新村一区84-5");
        rd.setSupplierName("贝贝潮品");
//        rd.setId(148L);
        rd.setOrderItemId(4872836L);

        SywModifyRefundScanItem rs2=new SywModifyRefundScanItem();
        rs2.setArtNo("贝贝潮品&20588");
        rs2.setColor("黄色拼蓝色");
        rs2.setItemId(46120429L);
        rs2.setQuantity(1);
        rs2.setSize("120");
        rs2.setPrice("22");
        rs2.setSupplierId(4872729L);
        rs2.setSupplierAddress("大河新村一区84-5");
        rs2.setSupplierName("贝贝潮品");
//        rd.setId(148L);
        rs2.setOrderItemId(4872836L);
        list.add(rd);
        list.add(rs2);
        m.setList(list);
//        m.setRemark("111");
        System.out.println(JSON.toJSONString(m));

        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(m)));
        return PostUtil.httpPost(url, formparams);
    }

    public static String addSywWorkSignIn() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/addSywWorkSignIn";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
//        formparams.add(new BasicNameValuePair("type", "0"));
        com.yuhang.demo.util.vo.RelationDto dto = new com.yuhang.demo.util.vo.RelationDto();
//        dto.setClerkId(657433L);
        dto.setExpressId(1L);
        dto.setExpressNo("0000088");
//        dto.setRefundId(1599L);
        List<RefunScanItemDto> list = new ArrayList<RefunScanItemDto>();
        RefunScanItemDto rd = new RefunScanItemDto();
        rd.setArtNo("三杰服饰&L1301");
        rd.setColor("蓝色");
        rd.setItemId(46041843L);
        rd.setPrice(new BigDecimal("42"));
        rd.setQuantity(1);
        rd.setSize("165");
        rd.setSupplierAddress("浙江省湖州市吴兴区织里镇中华西路555-2号");
        rd.setSupplierId(648956);
        rd.setSupplierName("三杰服饰");
        rd.setOrderItemId(4872813L);
        list.add(rd);
//        dto.setList(list);


        List<com.yuhang.demo.util.vo.RelationDto> dtos = new ArrayList<com.yuhang.demo.util.vo.RelationDto>();
        dtos.add(dto);

        System.out.println(JSON.toJSONString(dtos));
//        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(dtos)));
        formparams.add(new BasicNameValuePair("json","{\"id\":415,\"type\":0,\"list\":[{\"itemId\":\"46192620\",\"id\":\"587\",\"orderItemId\":\"0\",\"artNo\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1&20657\",\"color\":\"\\u9ec4\\u8272\",\"price\":\"43\",\"quantity\":\"4\",\"size\":\"140\",\"supplierId\":\"506443\",\"supplierAddress\":\"\\u5927\\u6cb3\\u65b0\\u6751\\u4e00\\u533a84-5\",\"supplierName\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1\",\"supplierPhone\":\"******\",\"refundId\":\"8798\"},{\"itemId\":\"46209268\",\"id\":\"586\",\"orderItemId\":\"0\",\"artNo\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1&20716\",\"color\":\"\\u767d\\u8272\",\"price\":\"43\",\"quantity\":\"2\",\"size\":\"150\",\"supplierId\":\"506443\",\"supplierAddress\":\"\\u5927\\u6cb3\\u65b0\\u6751\\u4e00\\u533a84-5\",\"supplierName\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1\",\"supplierPhone\":\"******\",\"refundId\":\"8797\"},{\"itemId\":\"46192620\",\"id\":\"585\",\"orderItemId\":\"0\",\"artNo\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1&20657\",\"color\":\"\\u9ec4\\u8272\",\"price\":\"43\",\"quantity\":\"2\",\"size\":\"160\",\"supplierId\":\"506443\",\"supplierAddress\":\"\\u5927\\u6cb3\\u65b0\\u6751\\u4e00\\u533a84-5\",\"supplierName\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1\",\"supplierPhone\":\"******\",\"refundId\":\"8797\"}]}"));
//        formparams.add(new BasicNameValuePair("json", "json"));


        return PostUtil.httpPost(url, formparams);

    }

    public static String updateRefundScanInfo() throws IOException {
        String url = PmTest.api + "/refund/syw/scan/updateRefundScanInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        UpdateRefundScanDto dto = new UpdateRefundScanDto();
        dto.setId(363);
        List<SywUpdateRefundScanList> list = new ArrayList<SywUpdateRefundScanList>();
        SywUpdateRefundScanList l1 = new SywUpdateRefundScanList();
        l1.setId(542L);
        l1.setArtNo("贝贝潮品&20937");
        l1.setColor("蓝色");
        l1.setItemId(46265308L);
        l1.setOrderItemId(4873559L);
        l1.setPrice("45");
        l1.setQuantity(1);
        l1.setRefundId(8762);
        l1.setSize("130");
        l1.setSupplierAddress("大河新村一区84-5");
        l1.setSupplierId(506443L);
        l1.setSupplierName("贝贝潮品");

        SywUpdateRefundScanList l2 = new SywUpdateRefundScanList();

        l2.setArtNo("贝贝潮品&20937");
        l2.setColor("蓝色");
        l2.setItemId(46265308L);
        l2.setOrderItemId(4873559L);
        l2.setPrice("45");
        l2.setQuantity(1);
        l2.setRefundId(8762);
        l2.setSize("130");
        l2.setSupplierAddress("大河新村一区84-5");
        l2.setSupplierId(506443L);
        l2.setSupplierName("贝贝潮品");
        list.add(l1);

        list.add(l2);
        dto.setList(list);

        System.out.println(JSON.toJSONString(dto));
//        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(dto)));
        formparams.add(new BasicNameValuePair("json","{\"id\":415,\"type\":0,\"list\":[{\"itemId\":\"46192620\",\"id\":\"587\",\"orderItemId\":\"0\",\"artNo\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1&20657\",\"color\":\"\\u9ec4\\u8272\",\"price\":\"43\",\"quantity\":\"4\",\"size\":\"140\",\"supplierId\":\"506443\",\"supplierAddress\":\"\\u5927\\u6cb3\\u65b0\\u6751\\u4e00\\u533a84-5\",\"supplierName\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1\",\"supplierPhone\":\"******\",\"refundId\":\"8798\"},{\"itemId\":\"46209268\",\"id\":\"586\",\"orderItemId\":\"0\",\"artNo\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1&20716\",\"color\":\"\\u767d\\u8272\",\"price\":\"43\",\"quantity\":\"2\",\"size\":\"150\",\"supplierId\":\"506443\",\"supplierAddress\":\"\\u5927\\u6cb3\\u65b0\\u6751\\u4e00\\u533a84-5\",\"supplierName\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1\",\"supplierPhone\":\"******\",\"refundId\":\"8797\"},{\"itemId\":\"46192620\",\"id\":\"585\",\"orderItemId\":\"0\",\"artNo\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1&20657\",\"color\":\"\\u9ec4\\u8272\",\"price\":\"43\",\"quantity\":\"2\",\"size\":\"160\",\"supplierId\":\"506443\",\"supplierAddress\":\"\\u5927\\u6cb3\\u65b0\\u6751\\u4e00\\u533a84-5\",\"supplierName\":\"\\u8d1d\\u8d1d\\u6f6e\\u54c1\",\"supplierPhone\":\"******\",\"refundId\":\"8797\"}]}"));
        return PostUtil.httpPost(url, formparams);
    }
    public static String getFastTag() throws IOException {
        String url = PmTest.api + "/user/getFastTag";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        return PostUtil.httpPost(url, formparams);

    }


    public static String updateFastTag() throws IOException {
        String url = PmTest.api + "/user/updateFastTag";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "55934"));
        formparams.add(new BasicNameValuePair("type", "0"));
        return PostUtil.httpPost(url, formparams);

    }


    public static String getSywItemInfoByExpressNo() throws Exception {
        String url = PmTest.api + "/refund/syw/scan/getSywItemInfoByExpressNo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("expressNo", "1111"));
        formparams.add(new BasicNameValuePair("dsId", "506321"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String postageAdd() throws IOException {
        String url = PmTest.api + "/1b/stpm/postage/add";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();

        List<StPostageSeason> list = new ArrayList<>();

        list.add(new StPostageSeason(BigDecimal.ONE,BigDecimal.ONE,BigDecimal.ONE,BigDecimal.ONE,1));
        StExpressPostage stExpressPostage = new StExpressPostage(0L, 506321, 29, "中通快递", "2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32",
                0, "备注", "ENABLED", list);
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(stExpressPostage)));


        System.out.println("{\"destination\":\"2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32\",\"expressId\":29,\"expressName\":\"中通快递\",\"freightCollect\":0,\"id\":31443,\"remarks\":\"备注\",\"seasonList\":[{\"addedWeight\":1,\"addedWeightKg\":1,\"firstWeight\":1,\"firstWeightKg\":1,\"type\":1},{\"addedWeight\":1,\"addedWeightKg\":1,\"firstWeight\":1,\"firstWeightKg\":1,\"type\":2}],\"state\":\"ENABLED\",\"userId\":506321}");
        return PostUtil.httpPost(url, formparams);
    }


    public static String postageUpdate() throws IOException {
        String url = PmTest.api + "/1b/stpm/postage/update";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();

        List<StPostageSeason> list = new ArrayList<>();
        list.add(new StPostageSeason(BigDecimal.ONE, BigDecimal.ONE, BigDecimal.ONE, BigDecimal.ONE, 1));
        list.add(new StPostageSeason(BigDecimal.ONE, BigDecimal.ONE, BigDecimal.ONE, BigDecimal.ONE, 2));
        StExpressPostage stExpressPostage = new StExpressPostage(31443L, 506321, 29, "中通快递", "2,3,4,5,6,7,8,9,10,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32",
                0, "备注", "ENABLED", list);
        System.out.println(JSON.toJSONString(stExpressPostage));
        formparams.add(new BasicNameValuePair("json", JSON.toJSONString(stExpressPostage)));
        return PostUtil.httpPost(url, formparams);
    }

    public static String setDefaultByExpressId() throws IOException {
        String url = PmTest.api + "/1b/stpm/postage/setDefaultByExpressId";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "506321"));
        formparams.add(new BasicNameValuePair("key", "29"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String postageQuery() throws IOException {
        String url = PmTest.api + "/1b/stpm/postage/query";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("userId", "506321"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String postageDel() throws IOException {
        String url = PmTest.api + "/1b/stpm/postage/del";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("id", "31443"));
        return PostUtil.httpPost(url, formparams);
    }

    public static String chargeEdit() throws IOException {
        String url = PmTest.api + "/1b/stpm/charge/edit";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("stChargeGeneral", "2"));
        formparams.add(new BasicNameValuePair("stChargeInspection", "0"));
        formparams.add(new BasicNameValuePair("userId", "506321"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String calcFreightWhole() throws IOException {
        String url = PmTest.api + "/2b/df/order/calcFreightWhole";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        File f = new File(System.getProperty("user.dir") + System.getProperty("file.separator") + "xx.json");
        StringBuilder sb = new StringBuilder();
        BufferedReader fr = new BufferedReader(new FileReader(f));
        String len = "";
        while ((len = fr.readLine()) != null) {
            sb.append(len);
        }
        fr.close();
        formparams.add(new BasicNameValuePair("json", sb.toString()));
        return PostUtil.httpPost(url, formparams);
    }


    public static String updateRefundScanInfoPuyuan() throws IOException {
        String url = PmTest.api + "/refund/scan/e3hui/updateRefundScanInfo";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("dsId", "803169"));
        formparams.add(new BasicNameValuePair("json","{\"id\":\"856\",\"list\":[{\"itemId\":\"46980243\",\"id\":\"1284\",\"orderItemId\":\"7680591\",\"artNo\":\"贵夫人&123\",\"color\":\"绿色\",\"price\":\"10\",\"quantity\":\"1\",\"size\":\"35\",\"supplierId\":\"7047994\",\"supplierAddress\":\"闵家兜31号\",\"supplierName\":\"贵夫人\",\"supplierPhone\":\"******\",\"refundId\":\"944546\"},{\"itemId\":\"46980243\",\"id\":\"0\",\"orderItemId\":\"\",\"artNo\":\"贵夫人&123\",\"color\":\"绿色\",\"price\":\"10\",\"quantity\":\"1\",\"size\":\"115\",\"supplierId\":\"0\",\"supplierAddress\":\"闵家兜31号\",\"supplierName\":\"贵夫人\",\"supplierPhone\":\"******\",\"refundId\":\"944547\"}]}"));
        formparams.add(new BasicNameValuePair("type", "0"));
        return PostUtil.httpPost(url, formparams);
    }


    public static String queryItemByParamsPuyuan() throws IOException {
        String url = PmTest.api + "/gi/queryItemByParamsPuyuan";
        List<NameValuePair> formparams = new ArrayList<NameValuePair>();
        formparams.add(new BasicNameValuePair("artNo", "测试厂家&dasdf"));
//		 formparams.add(new BasicNameValuePair("outPlatform", "2"));
//        formparams.add(new BasicNameValuePair("purchaserId", "502850"));

        return PostUtil.httpPost(url, formparams);
    }



}
